Coder Social home page Coder Social logo

Comments (8)

tomhughes avatar tomhughes commented on June 2, 2024 1

Why are you showing a picture of the browser console rather than the UI which I believe would have clearly shown "rate limit exceeded" or similar as the error?

I can't comment on the specifics of whether the limit was correct without knowing the user you were trying to comment as.

from openstreetmap-website.

tomhughes avatar tomhughes commented on June 2, 2024

I found your account and the problem is that there is an unresolved report against it, but we are overcounting the number of reports which is making the restriction harder than intended.

from openstreetmap-website.

tomhughes avatar tomhughes commented on June 2, 2024

Hopefully b5995c5 should fix the over-enthusiastic rate limit.

from openstreetmap-website.

matkoniecz avatar matkoniecz commented on June 2, 2024

Why are you showing a picture of the browser console rather than the UI which I believe would have clearly shown "rate limit exceeded" or similar as the error?

By "it fails silently" I meant that there is nothing in UI indicating a problem and I needed to check network logs to understand what is going on. My adblock is disabled at osm website.

I tried to reproduce it and failed - so likely either b5995c5 is deployed and works or someone resolved bogus report.

Still, wondering about missing error message show if it was supposed to appear....

from openstreetmap-website.

tomhughes avatar tomhughes commented on June 2, 2024

There is something odd going on - it definitely used to work but despite the response including status: 429 Too Many Requests that is not being passed to the xhr error callback so we wind up displaying a blank error message.

Not sure if it's a browser change, or something in rails 7.1 or what...

from openstreetmap-website.

tomhughes avatar tomhughes commented on June 2, 2024

I'm not really sure how the traditional status text from the response is passed in HTTP/2.0 but I'm guessing that is missing... I was thinking the status header had replaced it but I think that is separate.

Using xhr.getResponseHeader("status") does get the header and xhr.status is 429 but xhr.statusText is just "error" and the actual error passed in the third argument of the callback is completely blank.

from openstreetmap-website.

tomhughes avatar tomhughes commented on June 2, 2024

Apparently HTTP/2 doesn't support the text part of the traditional status line which is helpful... What I don't understand it how this worked in testing when originally implemented :-(

from openstreetmap-website.

HolgerJeromin avatar HolgerJeromin commented on June 2, 2024

https://stackoverflow.com/a/41637669/2194590
The http/2 protocol does not define this statustext anymore, so it is filled for the xhr api from the browser:

https://greenbytes.de/tech/webdav/rfc7540.html#rfc.section.8.1.2.4.p.2

What I don't understand it how this worked in testing when originally implemented :-(

Test server uses http1.1?

from openstreetmap-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.