Mapbox doesn't work in Docker (and possibly elsewhere)
See original GitHub issueIf 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
I thought that might be the case. Well, it worked with your token so we’re good 😸
Ah that’s expected. That mock is meant to test custom styles that are defined per mapbox account.