-
Notifications
You must be signed in to change notification settings - Fork 229
better validation for source URLs #651
Comments
In addition to this, valid URLs are dropped (silently) c/- the HTML5 form validation eg. I think relaxing it to something like the below would probably be okay?
|
mapbox#651 Valid URL characters are wide & varied.
@rmarianski and I are hitting this, too, when implementing the newer API_KEY bit of tilejson for Mapzen's MVT format vector tiles in tilezen/vector-datasource#311. In other words, loading the old (below) works fine:
And loading the new (below) never loads at all in Studio 0.2.7 and Studio Classic 0.3.2 for me.
With the only difference being shown with the post append of
When I view the web app loading it in Chrome with http://localhost:3000/, I get the following error:
Is there a workaround now or should we hold off implementing that until #1077 lands? |
Works for me (kind of): Looks like a server problem on your side. What happens, when you open one of the Most of the time I get a timeout message, that also shows in Studio for me: Requesting a single tile via browser, e.g.
results in this: or takes ~20 to ~30 seconds to deliver the one tile: ClientConnected: 10:53:35.514 ClientBeginRequest: 10:53:35.741 GotRequestHeaders: 10:53:35.741 ClientDoneRequest: 10:53:35.741 Determine Gateway: 0ms DNS Lookup: 59ms TCP/IP Connect: 61ms HTTPS Handshake: 0ms ServerConnected: 10:53:35.862 FiddlerBeginRequest: 10:53:35.862 ServerGotRequest: 10:53:35.863 ServerBeginResponse: 10:53:59.643 GotResponseHeaders: 10:53:59.643 ServerDoneResponse: 10:54:00.055 ClientBeginResponse: 10:54:00.056 ClientDoneResponse: 10:54:00.057 |
@nvkelso @rmarianski |
If you put a bad URL into the Sources dialog and click "Update", you can get some interesting/confusing behavior.
E.g. a URL which is a 200 but doesn't send TileJSON --> cryptic parse error.
Or https://a.tiles.mapbox.com/v4/jfire.hj4lo84b.json (v4 API URL without access token) --> JS error, and Mapbox Studio is de-authorized.
The text was updated successfully, but these errors were encountered: