-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When use warm-up cache error 400 bad request #30900
Comments
The 400 Bad Request error you're encountering when using the Celery warm-up cache in Superset version 4.0.2 is likely due to a validation error in the request body. The Initially, you received a 405 Method Not Allowed error, which suggests that the HTTP method used was incorrect. The To resolve the 400 error, ensure that your request body is correctly formatted according to the expected schema: {
"db_name": "string", // The name of the database where the table is located
"table_name": "string", // The name of the table to warm up cache for
"dashboard_id": integer, // The ID of the dashboard to get filters for when warming cache
"extra_filters": "string" // Extra filters to apply when warming up cache
} The fields |
what is file fix it? @dosu |
To fix the 400 Bad Request error when using the Celery warm-up cache in Superset, you should modify the |
so what will i do? @dosu |
Ensure that the JSON payload you are sending to the
By following these steps, you should be able to resolve the 400 Bad Request error. If you continue to encounter issues, review any error messages returned to identify specific fields causing the problem [1][2]. |
where can i add dashboard_id and extra_filters? @dosu |
You can add {
"db_name": "your_database_name",
"table_name": "your_table_name",
"dashboard_id": "your_dashboard_id", // Optional
"extra_filters": { // Optional
"filter_key": "filter_value"
}
} These fields are accessed in the code using |
can you step by step for me? @dosu |
Certainly! Here's a step-by-step guide to help you resolve the 400 Bad Request error when using the Celery warm-up cache in Superset:
By following these steps, you should be able to correctly format your request and resolve the 400 Bad Request error. If you encounter any specific error messages, they can provide further clues on what might be wrong with your request. |
no i did set superset-config.py:
|
Your If you're still encountering issues, ensure that:
If these steps don't resolve the issue, consider checking for any specific error messages in the logs that could indicate the root cause of the problem. |
Yedd it was fix in#31173. Thank you @nsivarajan |
Bug description
When i use celery warm-up cache it is error 405 Method Not Allowed. I did try 28706, but affter i getting error 400 bad request
master:
celery:
. anyone help me?
edit:
i trying superset-4.1.0rc4 but it is still similar.
Screenshots/recordings
No response
Superset version
4.0.2
Python version
3.10
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: