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

Run client there is a error msg:"Unhandled Rejection (TypeError): Failed to fetch" #7

Open
teedy8023mars opened this issue Dec 31, 2021 · 2 comments

Comments

@teedy8023mars
Copy link

teedy8023mars commented Dec 31, 2021

35 | var nav = new mapboxgl.NavigationControl();
36 | map.addControl(nav, this.state.matches?'bottom-right':'top-right');
37 |

38 | fetch('https://covid19-api.hackbotone.com/markers.geojson')
| ^ 39 | .then(response => response.json())
40 | .then(data =>
41 | map.once('load', function () {

@teedy8023mars
Copy link
Author

I have created my own MAPBOX_ACCESS_TOKEN,
and changed BASE_URL to http://localhost:3000
but it doesn't work, hope someone can help. thanks

@ysawyers
Copy link

ysawyers commented Feb 1, 2023

Having the same issue; I need help as well thank you!

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

2 participants