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

renderer error - Uncaught ReferenceError: Plotly is not defined #232

Closed
ravi-aggarwal opened this issue May 23, 2019 · 3 comments
Closed

Comments

@ravi-aggarwal
Copy link

ravi-aggarwal commented May 23, 2019

I am running orca with headless server xvfb on centos and when I execute:
orca graph '{ "data": [{"y": [1,2,1]}] }' -o fig.png --verbose

Get the following error, any ideas on how to fix this? (orca version is 1.2.1)

gpu process crashed - false
Chrome version 59.0.3071.115
Electron version 1.8.4
gpu process crashed - false
Chrome version 59.0.3071.115
Electron version 1.8.4
gpu process crashed - false
Chrome version 59.0.3071.115
Electron version 1.8.4
gpu process crashed - false
Chrome version 59.0.3071.115
Electron version 1.8.4
gpu process crashed - false
Chrome version 59.0.3071.115
Electron version 1.8.4
renderer error - Uncaught ReferenceError: Plotly is not defined
Chrome version 59.0.3071.115
Electron version 1.8.4

@ravi-aggarwal
Copy link
Author

So, upon further investigation, error is coming from src/component/plotly-graph/render.js where it cannot find Plotly.

I am not too familiar with javascript but can someone shed more light on how render.js is importing Plotly?

@ravi-aggarwal
Copy link
Author

I solved the issue by using a local copy of plotly.min.js instead of default - https://cdn.plot.ly/plotly-latest.min.js

I think it's probably due to firewall restrictions on my work server, not sure if there is a way to make the error more explicit

@antoinerg
Copy link
Collaborator

Thank you @ravi-aggarwal for letting us know. I agree that the error message renderer error - Uncaught ReferenceError: Plotly is not defined is not so clear.

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