question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mapbox doesn't work in Docker (and possibly elsewhere)

See original GitHub issue

If test/image-make_baseline.js is used to run mapbox* against image-exporter running as an imageserver in Docker, all mapbox tests fail and this message is printed by image-exporter:

{"severity":"ERROR","textPayload":"525 - plotly.js error","labels":{"fid":null}}

I’ve verified that the PLOTLY_MAPBOX_DEFAULT_ACCESS_TOKEN environment variable is set to the same token used on Plotly Cloud prod.

I also tried running ./bin/plotly-graph-exporter.js with a mapbox mock. See https://github.com/plotly/streambed/issues/9865#issuecomment-350266223 for the full command (but I’m not copying it here since it contains a Plotly Cloud mapbox access token). The results were:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

done with code 1 in 1.73 ms - failed or incomplete task(s)

I’m not sure if this is the same issue or not. I believe the libGL errors are unrelated; they also happen for working mocks on my machine.

I’m going to look into this some more (my next step is to try the plotly-graph-exporter.js command with one mapbox mock from inside a Docker container).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
scjodycommented, Dec 11, 2017

I thought that might be the case. Well, it worked with your token so we’re good 😸

0reactions
etpinardcommented, Dec 11, 2017

except mapbox_custom-style to work

Ah that’s expected. That mock is meant to test custom styles that are defined per mapbox account.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running docker image doesnt recognize the path or ...
I am running this Docker image, it returns me the help and also error once i run some tippecanoe commands, but doesn't recognize...
Read more >
Mapbox GL JS
Mapbox GL JS is a JavaScript library for vector maps on the Web. Its performance, real-time styling, and interactivity features power immersive map ......
Read more >
Self-hosting Mapbox vector tiles
Probably easiest is to use a simple open-source server such as TileServer-PHP and put the MBTiles file to the same folder as the...
Read more >
Mapbox data visualization doesn't work · Issue #7272
Go to SQL Lab and write a query include latitude and longitude. Click on the 'explore' button; choose the 'mapbox' as Visualization Type...
Read more >
Mapbox map loading but not showing - Questions
I am trying to load a Mapbox map. However the map loads but not ... Try to inspect what is there, maybe it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found