Action Errors
Timeout error
Error message
Cause
If your API / DB Query times out, it could be due to one of the following reasons
- Your API / Database is behind a VPC which is not accessible from the appsmith Instance. This can be fixed by whitelisting the appsmith instance in your database or VPC.
- Your API / Query is taking too long to respond. This can be fixed by fetching smaller datasets using
Solution
You could resolve the error response by doing one of the following:
Server-side pagination: Allows you to manage and display large datasets within your application. It involves fetching and displaying only a portion of data from the server at a time, enhancing performance.
Timeout Configuration: The Appsmith server has a default internal timeout of 60 seconds. If your queries take longer than this, you can set a value greater than 60 seconds. For self-hosted instances, you can set the
APPSMITH_SERVER_TIMEOUT
environment variable to a value greater than 60 seconds. For example, if you want a timeout of 80 seconds, use-APPSMITH_SERVER_TIMEOUT=80
.
504 gateway timeout
Error message
Cause
If you encounter a 504 Gateway Timeout error while using Appsmith on a Kubernetes cluster and your application calls an upstream API, which takes longer than 60 seconds to complete, you might face this issue.
Solution
The issue is that Appsmith is timing out after 60 seconds when calling an upstream API, but the desired timeout is 300 seconds. The default timeout for Nginx (which Appsmith uses) is also 60 seconds, so increasing the timeout in Nginx to 300 seconds would solve this issue.
However, it appears that Appsmith is currently limited by Nginx's default timeout and cannot go beyond 60 seconds. This is being addressed by the Appsmith team, but in the meantime, the solution is to optimize the upstream API to return a response within 60 seconds.
Configuration error
getUsers failed to execute. Please check its configuration
This message indicates an error in the configuration of the action. You can navigate to the API / Query in this state and see the error it encountered. If the error occurred intermittently, it is likely due to a value in the configuration not being available at the time that the API / Query was run.
Mandatory parameter empty error
Mandatory parameters 'Action' and 'Bucket Name' are missing
Required parameter 'File Path' is missing
Missing action name (like `ListTables`, `GetItem` etc.)
Document/Collection path cannot be empty
Missing Firestore method
A message of this type means that at least one of the mandatory/required fields in the query editor form is missing.
This error can be fixed by editing the query editor form and providing the parameter mentioned in the error message.
Missing query error
Missing required parameter: Query
needs a non-empty body to work
Body is null or empty
Any one of these messages indicated that the body of the query has been left empty.
This error can be fixed by editing the query form and providing a query body.
Invalid query error
Not a valid Redis command
Query preparation failed while inserting value
A message of this type indicates that the syntax of the query body is invalid.
This error can be fixed by providing a valid syntax in the query editor form.
Encoding error
File content is not base64 encoded
This message indicates that the query was expecting a base64 encoded value as content body, but the actual value passed to it was not base64 encoded.
This error can be fixed by passing a base64 encoded value as a file content parameter in the query.
Invalid number error
Parameter 'Expiry Duration of Signed URL' is NOT a number
This message indicates that the query parameter mentioned in the message expects a number but a non-numerical value has been provided in the query form.
This error can be fixed by editing the query form and providing a valid number as input for the mentioned parameter.
JSON parsing error
Error parsing the JSON body
Error converting array to ND-JSON
Unable to parse condition value as a JSON list
This message indicates that the JSON string passed to the query as a parameter is not a valid JSON string.
This error can be fixed by editing the query form and passing a valid JSON string as a parameter.