WHY ! PlotlyRequestError: No message


#1

Program: it is the code on plotly web[get started]
import plotly.plotly as py
from plotly.graph_objs import *

trace0 = Scatter(
x=[1, 2, 3, 4],
y=[10, 15, 13, 17]
)
trace1 = Scatter(
x=[1, 2, 3, 4],
y=[16, 5, 11, 9]
)
data = Data([trace0, trace1])

py.iplot(data, filename = ‘basic-line’)

Traceback (most recent call last):
。。。。。。
。。。。。。
File “C:\Users\User\Anaconda3\lib\site-packages\plotly\api\v1\clientresp.py”, line 35, in clientresp
response = request(‘post’, url, data=payload)

File “C:\Users\User\Anaconda3\lib\site-packages\plotly\api\v1\utils.py”, line 85, in request
raise exceptions.PlotlyRequestError(message, status_code, content)

PlotlyRequestError: No message

i don’t know why
on my laptop, the program can work, but on my PC, the error will happen, it seems the PC can’t connect with the sever of plotly and can’t generate the graph.
Please help me!!!
anyone is okay!!!
how to deal with the problem. elites in this field , i need your help.


#2

Hi @starfather-1,

It seems that you did not sign in.

If you have a Plotly account just insert before the line
py.iplot(...)
the line:
py.sign_in('your_username', 'your_API_key')


#3

Thank you very much for your advice. But unfortunately, it still doesn’t work. I has been seeking for so much information related to the error. However, there is no solution. Maybe my PC has some unknown problem.