mastodon / joinmastodon

The official Mastodon project homepage
https://joinmastodon.org
240 stars 152 forks source link

https://api.joinmastodon.org/update-check serves HTTP 500 Errors #803

Closed chriscroome closed 2 weeks ago

chriscroome commented 2 weeks ago

The URL https://api.joinmastodon.org/update-check serves HTTP 500 errors, in the past it served JSON with the status code 200, is this due to a bug or problem or is this intentional?

andypiper commented 2 weeks ago

Thanks for the report, looking into this.

renchap commented 2 weeks ago

This endpoint is expected to have a version argument. For example https://api.joinmastodon.org/update-check?version=4.3.0 is working.

I am not sure it ever worked without arguments, can you please provide more details on the request you are making?

andypiper commented 2 weeks ago

Ah, it looks like you're possibly (?) trying to send just a version number without a parameter?

The version check API was introduced in the last couple of years so that admins could be alerted to available upgrades, and I'm not sure that it was formally documented for external / non-core-app usage. We should consider whether that is required here.

chriscroome commented 2 weeks ago

Thanks @andypiper and @renchap and very sorry for wasting your time, it was a missing version= in the URL that caused the issue, not a problem with the service. 🙄

andypiper commented 2 weeks ago

Thanks for clarifying, good to know!