Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Error Bad Response 500 for getImage() #68

Closed
shaedmorgan opened this issue Dec 21, 2020 · 4 comments
Closed

Error Bad Response 500 for getImage() #68

shaedmorgan opened this issue Dec 21, 2020 · 4 comments

Comments

@shaedmorgan
Copy link

Any help would be great - or alternative options.

I'm using getImage to create and store a plot in a google cloud bucket. I've been using this successfully for weeks now, and all of the sudden, with no changes to the code, I start getting this error. I've seen other issues with a 301 code, that make it seem like I need to to some switch to a new way to do this, but I don't know how. Any guidance, suggestions for quick fixes, etc. would be appreciated!

code:
image

error:
image

@shaedmorgan
Copy link
Author

I've narrowed it down to the fact that I display some text that is not a UTF-8 character, but it's not reading it correctly. It's the upward pointing white triangle "\u25B3" - when I put that in the code, it still gives me the error

(see issue #43 for reference!)

@Eden4897
Copy link

Eden4897 commented Jan 25, 2021

Same problem here, plotly gives me a 500 error when I try to render a graph containing a character like "ç". However, the weird thing is that when I do ploty.plot() and click into the URL, it works perfectly fine.

@shaedmorgan
Copy link
Author

Following the instructions listed in this pull request and a bit more tinkering fixed the issue for me. You basically just need to change the instructions on how the JSON gets read to include all utf-8 special characters:

Hope this helps! Worked for me.

#49

@shaedmorgan
Copy link
Author

Same problem here, plotly gives me a 500 error when I try to render a graph containing a character like "ç". However, the weird thing is that when I do ploty.plot() and click into the URL, it works perfectly fine.

I hope my solution above works for you!

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

No branches or pull requests

2 participants