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

After installing plotly3.0.0rc10 I cannot sign in #1044

Closed
empet opened this issue Jul 2, 2018 · 6 comments
Closed

After installing plotly3.0.0rc10 I cannot sign in #1044

empet opened this issue Jul 2, 2018 · 6 comments

Comments

@empet
Copy link

empet commented Jul 2, 2018

I installed plotly3.0.0rc10 in a miniconda env, with python 3.6.4.
It works fine, but trying to sign_in I get the following error

PlotlyRequestError                        Traceback (most recent call last)
~/plotly/plotly/plotly.py in sign_in(username, api_key, **kwargs)
     69         # with the given, username, api_key, and plotly_api_domain.
---> 70         v2.users.current()
     71     except exceptions.PlotlyRequestError:

~/plotly/api/v2/users.py in current()
     16     url = build_url(RESOURCE, route='current')
---> 17     return request('get', url)

~/plotly/api/v2/utils.py in request(method, url, **kwargs)
    152         raise exceptions.PlotlyRequestError(message, status_code, content)
--> 153     validate_response(response)
    154     return response

~/plotly/api/v2/utils.py in validate_response(response)
     78
---> 79     raise exceptions.PlotlyRequestError(message, status_code, content)
     80

PlotlyRequestError: Plotly-Client-Platform header is too long

During handling of the above exception, another exception occurred:

PlotlyError                               Traceback (most recent call last)
<ipython-input-1-5ba4ad58d071> in <module>()
      1 import plotly.plotly as py
----> 2 py.sign_in('empet', '')

~/plotly/plotly/plotly.py in sign_in(username, api_key, **kwargs)
     70         v2.users.current()
     71     except exceptions.PlotlyRequestError:
---> 72         raise exceptions.PlotlyError('Sign in failed.')
     73
     74 update_plot_options = session.update_session_plot_options

PlotlyError: Sign in failed.
@jonmmease
Copy link
Contributor

Hi @empet, Thanks for letting us know.

Just to double check, does sign_in work as expected for you with plotly.py version 2.7 (current stable)?

@Kully Could you take a look at this? I didn't think we made any changes to the authentication code for 3.0, but something may be slipping my mind.

@empet
Copy link
Author

empet commented Jul 2, 2018

@jmmease Yes, with plotly 2.7 I can sign_in.

@jonmmease
Copy link
Contributor

Hi @empet , I think I tracked it down. The plot.ly infrastructure doesn't like the current version string '3.0.0rc10'. I'll work with that team to figure out which side should make a change. Thanks!

@empet
Copy link
Author

empet commented Jul 3, 2018

Thanks, @jmmease :)

@jonmmease
Copy link
Contributor

Hi @empet, I think we've got it sorted out now. I just published 3.0.0rc11. Can you give that a try?

@empet
Copy link
Author

empet commented Jul 4, 2018

Hi @jonmmease,
I succeeded! Here is the my first online plot with plotly 3.0.0rc11: https://plot.ly/~empet/14906. Thank you very much!!!!!

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