openstreetmap / openstreetmap-website

The Rails application that powers OpenStreetMap
https://www.openstreetmap.org/
GNU General Public License v2.0
2.17k stars 911 forks source link

HTTP error 422 on creating notes #1571

Closed westnordost closed 7 years ago

westnordost commented 7 years ago

I am getting error reports from users who use osmapi (OSM API 0.6 client implementation) since today 4 PM CEST that the OSM API gives them a

422 Unprocessable Entity

error.

westnordost commented 7 years ago

While investigating, I ran the test cases in osmapi again. They fail for notes.

An example call that is made is: POST https://master.apis.dev.openstreetmap.org/api/0.6/notes?lat=-21.0&lon=94.0&text=test+case

simonpoole commented 7 years ago

I can confirm the error, at least against dev.

@westnordost there was a rails version change earlier today which is the likely cause, but that implies that @tomhughes or @gravitystorm will have to have a look.

tomhughes commented 7 years ago

Most likely either an ActionController::InvalidAuthenticityToken or ActionController::InvalidCrossOriginRequest exception is being thrown - both lead to that status code being returned.

westnordost commented 7 years ago

And rolled out already (at least on dev according to test cases), thank you :-)