Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

iosapp: Failed to load [mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6] #2713

Closed
iDevelopper opened this issue Oct 22, 2015 · 12 comments
Labels
iOS Mapbox Maps SDK for iOS

Comments

@iDevelopper
Copy link

When i try to execute the iOS application, i can see this error in the console :

2015-10-22 09:49:06.221 Mapbox GL[43335:2498349] [ERROR] {Map}[Style]: Failed to load [mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6]:

What i'm doing wrong ?

@ljbade ljbade added the iOS Mapbox Maps SDK for iOS label Oct 22, 2015
@ljbade
Copy link
Contributor

ljbade commented Oct 22, 2015

/cc @1ec5 @incanus

@iDevelopper
Copy link
Author

What does it means? You have transmit this issue to them or do i write to them ?

@ljbade
Copy link
Contributor

ljbade commented Oct 22, 2015

Sorry @iDevelopper for the confusion.

I /cc'd my iOS colleagues so they can answer your question when they read this issue tomorrow.

@iDevelopper
Copy link
Author

Thank you very much :)

@friedbunny
Copy link
Contributor

We currently do not know what causes this intermittent failure, which is being tracked in #2012.

@iDevelopper
Copy link
Author

Ah OK, but for me it is not intermittent, i tried several times on simulator and on device

@1ec5
Copy link
Contributor

1ec5 commented Oct 22, 2015

Are you seeing the issue in the iosapp application that's part of this repository, or in an application you've written based on the iOS SDK? If the latter, are you using one of the built in styles or a custom style?

@1ec5 1ec5 reopened this Oct 22, 2015
@iDevelopper
Copy link
Author

In the iosapp (example) clowned from github and compile with "make iproj".
Currently I have an application that runs with the deprecated MapBox SDK and displays offline maps (mbtiles). So as this SDK is obsolete, I just started to get interested in the new SDK.

But i can't see the map at screen : Failed to load [mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6]:

@1ec5 1ec5 changed the title App iOS iosapp: Failed to load [mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6] Oct 22, 2015
@1ec5
Copy link
Contributor

1ec5 commented Oct 22, 2015

Per case 3 in #1647, please double-check that you’ve set a valid access token in your environment.

@iDevelopper
Copy link
Author

I ave a valid access token

@bkaradzic
Copy link

I have the same issue on Linux. If token is invalid error is:

[ERROR] {Map}[Style]: Failed to load [mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6]: 
[ERROR] {Map}[Style]: Failed to load [mapbox://sprites/mapbox/streets-v8.png]: HTTP status code 401
[ERROR] {Map}[Style]: Failed to load [mapbox://sprites/mapbox/streets-v8.json]: HTTP status code 401

If token is valid only one line is printed:

[ERROR] {Map}[Style]: Failed to load [mapbox://mapbox.mapbox-terrain-v2,mapbox.mapbox-streets-v6]: 

@jfirebaugh
Copy link
Contributor

We were caching TileJSON with tile URL templates that had embedded access tokens, and then using those URL templates.

As of 025375a, we always canonicalize tile URL templates to a form that does not include an access token, fixing this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

6 participants