Inaturalist 504 gateway timeout while testing my api key for MO

Please fill out the following sections to the best of your ability, it will help us investigate bugs if we have this information at the outset. Screenshots are especially helpful, so please provide those if you can.

Platform (Android, iOS, Website): Pc

App version number, if a mobile app issue (shown under Settings or About):

Browser, if a website issue (Firefox, Chrome, etc) : Firefox & Chrome giving same 504 message

URLs (aka web addresses) of any relevant observations or pages:

Screenshots of what you are seeing (instructions for taking a screenshot on computers and mobile devices:

Description of problem (please provide a set of steps we can use to replicate the issue, and make as many as you need.):

Step 1: Seached how to import MO observations to IN

Step 2: Got an API key from MO typing “Inaturalist” for description of app using api

Step 3: Pasted api in preview your import, and got 505 error

seems like this happens every once in a while:

1 Like

We’re aware of the issue. I can’t estimate when it’ll be fixed, however.

1 Like

I’m attempting to use the MushroomObserver import tool to import my observations from MO to iNat and I keep getting a 504 Gateway Timeout after Step 1 and hitting [Test] with my api key entered.

It seems to be quite similar to this issue:

This is platform-independent issue that has been reported to both Mushroom Observer and to INat support by multiple users.

Description of problem

Step 1: Goto

Step 2: Fill in MO API Key

Step 3: Click “Test”

RESULT: 504 Gateway Time-out nginx

I hope the following will expedite a fix.
PS: It’s not safe to assume that the MO image has extension jpg.

MO Webmaster
Oct 24, 2021, 8:19:42 PM
to, mo-developers

Dear iNat:

I poked around a bit in the iNat code. I don’t completely understand what’s going on, but I see some issues here:

image_url = "[{image[:id]}.jpg]([:id]%7D.jpg)"

and maybe here:

image_url = "[{image[:id]}.jpg]([:id]%7D.jpg)"

To get an MO image, external users should use a URL in the form:<*size*>/<*id*>.<*ext*>

Other URLs are not guaranteed to be stable and may break at some point down the line.

Line 293 above will certainly cause an error; we recently moved our image store from Digital Ocean to Google Cloud Platform. Digital Ocean’s response looks like:


I don’t know how the iNat code interprets that.

Line 303 above should not cause a timeout, but may cause a 404.

Please let us know if you think there’s a different problem, or if there’s something we can do to help isolate/debug the issue.

Again, it would help to know the details of the request that’s causing the 504 gateway timeout.

Best regards,

– Joe Cohen
MO Dev Team

1 Like

PPS: The Digital Ocean response to line 293 has changed since 24-Oct, because MO has since completely deleted the DO bucket. The response now looks like this:

<Message>This bucket is temporarily reserved for administrative purposes.</Message>

(consolidated several bug reports into this one)

Hi @tiwane - could you point me to the GitHub issue for this? I wasn’t able to find it. If it doesn’t exist, should we create it? I’m interested in submitting a PR but the contribution guidelines strongly urges not to issue PRs without specific issues.

As far as I know there isn’t a GH issue for this current problem.

OK - I’ve created an issue for it here: - If someone will review and approve or escalate the issue, I’d be happy to submit a PR.

I’ve been experiencing this issue as well. I’ve commented on the github about this as well.

I have been having this issue as well. I have a whole lot really high resolution photos on Mushroom Observer and hope I won’t have to add them all to iNaturalist manually, that would take weeks.