Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent CORS errors with Bird API #15

Open
alulsh opened this issue Dec 28, 2021 · 0 comments
Open

Intermittent CORS errors with Bird API #15

alulsh opened this issue Dec 28, 2021 · 0 comments

Comments

@alulsh
Copy link
Owner

alulsh commented Dec 28, 2021

Bird maintains an API endpoint for DC data in https://gbfs.bird.co/dc, which is listed on DDOT's dockless API page. Unfortunately, this API endpoint suffers from intermittent CORS errors, which makes it difficult to work with. So far I've noticed a pattern with the first request of the day experiencing a CORS error, but anecdotally in the past, I've seen the error at various points in the day.

Here's a CORS error for the first hit of the day at 8:31 UTC:

Screen Shot 2021-12-28 at 9 31 32 AM

No CORS error for the second hit of the day after refreshing at 8:32 UTC:

Screen Shot 2021-12-28 at 9 32 43 AM

I could still potentially add this API to this project, but it would require more robust investments in error handling and UX. There's also the risk that the CORS error could eventually turn into an intentional permanent decision and not stay an intermittent error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant