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

Javascript Load Error #15

Open
boonrs opened this issue Mar 2, 2015 · 1 comment
Open

Javascript Load Error #15

boonrs opened this issue Mar 2, 2015 · 1 comment

Comments

@boonrs
Copy link

boonrs commented Mar 2, 2015

ruby: 2.2.0p0
rails: 4.2.0
mapbox-rails: 1.6.1.1

I get the following console errors and am unable to get a map to load:

  • Failed to load resource: the server responded with a status of 401 (Unauthorized)
  • could not load TileJSON at ...

To double check my map permissions & token, I used the same javascript code in a simple html file including the appropriate cdns. The map loaded correctly.

@rhulse
Copy link

rhulse commented Apr 4, 2015

The JS in this gem is failing to append the access_token on to the end of the request for the TileJSON file. That causes it to fail, 401.

Have a look in the console and you'll see the difference in the requests made from the CDN code vs that here.

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