"PlotlyRequestError: No message" error while compiling python code

Hello,

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
chart_studio.tools.set_credentials_file(username=‘XXXXRob’, api_key=‘Amo3Nyjh2nxjoONtMOJn’)
import chart_studio.plotly as py
import chart_studio.tools 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\utils.py”, 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: https://chart-studio.plotly.com/

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 plotly.express as px
import pycountry as pc
import chart_studio
import chart_studio.plotly as py
import chart_studio.tools as tls
import plotly.graph_objects as go

from chart_studio.tools import set_config_file
set_config_file(
plotly_domain=“https://plotly.com”,
plotly_api_domain=“https://api.plotly.com”,
)

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

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

chart_studio.tools.set_credentials_file(username=username, 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