-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
calendar: including a large image will cause event submission to fail with server error #12
Comments
Barring the other problems on the site it appears to work |
WORKS NOW |
tried to debug a bit but didn't quite get to the end. Here's a decent view that I (as a netlify employee) can see of failures from our log service, so we can use them to find entries in the local logs to dig into further. not all the failures are HTTP 413, but the actionable ones sure all are! |
Once we fix #426 this will become easier to debug... |
i suspect that the fix for #483 fixes this. https://github.com/shift-org/shift-docs/blob/main/backend/www/manage_event.php#L80 |
so it turns out, we never hit the to verify that, i made a 1.5 meg version of the problematic image, and couldn't upload it ( running local docker ) we should amend the config to match the php, but the client will also need adjustment to handle the error. http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size nginx returns 413 for the endpoint, with an html response; the client is expecting a json response and no error(s).
|
…nd 413 ) so that they act like the errors of other fields. 1. check for the nginx 413 error, and create a fake error message in that case 2. swap the "file" field error for "image" so that it shows on the appropriate html label shift-org#12
fixed as of #523 |
Reproduction steps:
cc @sdobz
The text was updated successfully, but these errors were encountered: