Skip to content

Sourcery Login issues #366

Open
Open
@sureshbabu-nair

Description

@sureshbabu-nair

Checklist

  • I have searched the Sourcery documentation for the issue, and found nothing
  • [X ] I have checked there are no open bugs referencing the same bug or problem

Description

I have been trying to use sourcery on my office laptop (MacOS Ventura) without much success, but I am able to login from my personal devices.
I am tried using both the web-browser code method as well as using the token, I am not sure whats preventing my access.

I am getting this error from the command line

suresh$ sourcery login --token user_orEywFeB0It1ynbQelvlZ_JUe7z1W9AjXRJsvwY3ftD_wCaolyWo3WsUJLc
Sourcery requires a token. Visit our website to get yours free
Failed to log in, please try again.

suresh$ sourcery login
Your browser will be opened to visit: https://auth.sourcery.ai/activate?user_code=JXHR-CHWB

Ensure that the following code is displayed: JXHR-CHWB

Failed to fetch token: {"error":{"message":"You did not provide authentication. You need to provide the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY').","type":"unauthorized"}}
Failed to log in, please try again.

I am having similar errors from Pycharm and vscode. But when I used my personal devices (Windows 10 & MacOS Catalina), I am able to login without a problem with both the methods, token & web browser on IDEs as well as commandline.

I even tried to use one of my personal device as a proxy, in case, if there was a firewall issues on my Office Laptop

Code snippet that reproduces issue

Sourcery requires a token. Visit our website to get yours free
Failed to log in, please try again.

suresh$  sourcery login
Your browser will be opened to visit: https://auth.sourcery.ai/activate?user_code=JXHR-CHWB

Ensure that the following code is displayed: JXHR-CHWB

Failed to fetch token: {"error":{"message":"You did not provide authentication. You need to provide the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY').","type":"unauthorized"}}
Failed to log in, please try again.

Debug Information

IDE Version: PyCharm Community Edition 2023.1.4 , VS Code (Version: 1.80.1) as well as Python Module, sourcery (1.6.0)

Sourcery Version: v1.6.0

Operating system and Version:
MacOS Ventura 13.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions