I am tearing my hair out trying to debug this problem. Photo upload (POST /api/0.3/photos) fails with HTTP 500 response in certain conditions:
From a browser with the website running either locally or on https://beta.fallingfruit.org, or programmatically (e.g. Postman). In the latter case, sending repeat requests in quick succession often results in either HTTP 500 or HTTP 503.
I am tearing my hair out trying to debug this problem. Photo upload (POST
/api/0.3/photos
) fails with HTTP 500 response in certain conditions:I cannot find where the error originates. The request does not seem to reach the API, nor even the lighttpd web server (at least, I find nothing in either website access logs nor server error logs when request fails). Could it originate from Apache? Or even Cloudflare? Not the latter according to the response body (see below), which is devoid of
cloudflare
(see https://developers.cloudflare.com/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-5xx-errors/#error-500-internal-server-error).Could it be high traffic? Lighttpd error log has many such lines:
Request
POST
https://fallingfruit.org/api/0.3/photos?api_key={api_key}
withform-data
body withfile: {photo_path}
Response