Git Product home page Git Product logo

Comments (6)

Jorl17 avatar Jorl17 commented on July 21, 2024 2

Hi, thank you for your feedback :)

Support has been added for CORS. It's obvious it should have been added from the very start.

Cheers!

from open-elevation.

mark-sts avatar mark-sts commented on July 21, 2024 1

Agree, when calling the api from code (javascript) I am getting:
Failed to load https://api.open-elevation.com/api/v1/lookup?locations=10%2C10: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Works fine when called live from the browser url

from open-elevation.

Rcalaf avatar Rcalaf commented on July 21, 2024

Hi,

We experience the same issue, not sure if you have updated the server or added som patch but again when calling the API through JS receiving a CORS error.

Thanks for checking,

Screenshot 2022-02-01 at 18 41 56

from open-elevation.

Jorl17 avatar Jorl17 commented on July 21, 2024

Hi.

Our service has recently reached a bottleneck once more. Some developers are using it carelessly and, since we don't enforce API keys or similar measures -- and are low on donations -- the servers are blowing up. In particular, I can tell you that the app "Ski Tracker" uses our services and is completely bombarding us with requests non-stop. This made the service unusable for most other users.

As a measure to try to workaround Ski Tracker's aggressive usage of our service (we're being bombarded with hundreds of requests per second), we implemented a more thorough rate limiting system. Sadly, I believe this system is leading to your problems. I have just done some adjustments that might improve your situation. Please tell me if the situation has improved or not.

Sorry for the inconvenience. It's not easy to maintain a free service :(

EDIT: I have noticed that in your logs you received a 504. This is just a general timeout and failure. It may fail due to CORS but it isn't actually a CORS problem, just a problem with the server being overloaded. Sadly, no amount of rate limiting is going to fix this issue (only a beefier machine will help, sadly)

from open-elevation.

Rcalaf avatar Rcalaf commented on July 21, 2024

from open-elevation.

Rcalaf avatar Rcalaf commented on July 21, 2024

from open-elevation.

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.