Black Lives Matter. Please consider donating to Black Girls Code today.

"PlotlyRequestError: No message" error while compiling python code


I signed up for plotly in 2018.
I use plotly in combination with python. After I sigend up I received an api-key.

I wrote a program which worked perfec so far. It has some plotly lines as follows:

import chart_studio‘XXXXRob’, api_key=‘Amo3Nyjh2nxjoONtMOJn’)
import chart_studio.plotly as py
import as tls
import plotly.graph_objs as go

first_plot_url = py.plot(fig, filename=‘awt_chart’, auto_open=False,)

This code worked for nearly two years now.
Today a received a error message while compiling
the code mentioned above:

File “C:\ProgramData\Anaconda3\lib\site-packages\chart_studio\api\v2\”, line 179, in request
raise exceptions.PlotlyRequestError(message, status_code, content)

PlotlyRequestError: No message

I did not change anything on the code for months and it worked perfect before. I did not even change something on my OS settings. Everythings remains the same.
So I wonder whether that could be an API issue which I am not involved in.

Could you please help me out with this issue?

Best regards,

Robert P.

We’ve made a few changes to the URLs for Chart Studio Cloud, so you may need to update your configuration file as explained here: 📣 URL Change for Chart Studio Cloud:

Dear Nicolas,

I have the same issue as Robert. P. However, even if I run the code you suggested in the jupyter notebook I am using to upload graphs to chart studio, the error persists. I’m learning, so there might be something I’m missing. I’d really appreciate your support and thanks in advance!

For reference, I’m running the following code:

import as px
import pycountry as pc
import chart_studio
import chart_studio.plotly as py
import as tls
import plotly.graph_objects as go

from import set_config_file

graph_name = px.line(name,
x=“x” )

username = ‘xxx’ # my username
api_key = '‘xxx’ my api key, api_key=api_key)

graph= py.plot(graph_name, filename = ‘graph_name’, auto_open=False)

##end of code above##

Which returns the PlotlyRequestError: No message