question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to connect to grammarly: auth authentication failed 401 Headers

See original GitHub issue

I noticed that the (excellent!) extension stopped working, checking out the log I noticed the following output (slightly redacted):

... 
2020-01-28T11:28:12.815Z grammarly:auth authenticating as <username> {
  accept: 'application/json',
  'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8',
  'content-type': 'application/json',
  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) ' +
    'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 ' +
    'Safari/537.36',
  'x-client-type': 'funnel',
  'x-client-version': '1.2.1082',
  'x-container-id': '<some_id>,
  'x-csrf-token': '<some_token>',
  'sec-fetch-site': 'same-site',
  'sec-fetch-mode': 'cors',
  cookie: 'gnar_containrId=some_value; ' +
    'grauth=some_bigger_value; ' +
    'csrf-token=some_token_value'
}

2020-01-28T11:28:13.509Z grammarly:auth authentication failed 401 Headers {
  [Symbol(map)]: [Object: null prototype] {
    date: [ 'Tue, 28 Jan 2020 11:28:13 GMT' ],
    'content-type': [ 'application/json' ],
    'content-length': [ '19' ],
    connection: [ 'close' ],
    'x-frame-options': [ 'DENY' ],
    'x-xss-protection': [ '1; mode=block' ],
    'x-content-type-options': [ 'nosniff' ],
    'content-security-policy': [ "default-src 'none'" ],
    'strict-transport-security': [ 'max-age=31536000' ],
    'cache-control': [ 'max-age=0, no-store, no-cache' ],
    'x-robots-tag': [ 'noindex, nofollow' ]
  }
}
(node:20470) UnhandledPromiseRejectionWarning: Error: Cannot connect to grammarly, no cookie found.
...

I made sure that my username and password were correct. Is there anything I can do to diagnose it? Please let me know if I can provide more information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hmemcpycommented, Jan 28, 2020

Yeah, I think downgrading silently isn’t a good idea, too surprising. I think an error popup would be best. The only way I even knew something was wrong was looking at the status bar indicator, it showed 0 out of 100, and clicking on it did nothing. Then I checked the output logs.

Edit: confirm this works in 0.6.1! So something must have changed between the two versions.

1reaction
kaarejoergensencommented, Jan 28, 2020

I am getting the same error when trying to log in.I have version 0.6.2 as well.

For my part, I do not think it makes sense to downgrade to the free API if the auth fails, I’d rather (and I don’t know anything about vs code extensions) be shown an error, and then given the choice of downgrading. That way I’d know that something is wrong 😃

Other than that I love your extension! It makes writing my thesis so much easier! Thank you for taking the time to develop it, I really appreciate it 👍

Edit: The login works by downgrading to version 0.6.1 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Connecting to the Grammarly server…
The “Connecting to the Grammarly server…” message can indicate a problem with your local network, internet service provider, or computer settings.
Read more >
401 Error: 5 Ways to Troubleshoot and Fix It - Hostinger
The 401 Unauthorized error is triggered by unauthenticated requests made to a WordPress web server. Learn how to identify and fix the issue....
Read more >
How to Quickly Fix the 401 Unauthorized Error (5 Methods)
Look for Errors in the URL; Clear Your Browser's Cache; Flush Your DNS; Deactivate Your WordPress Plugins; Check the WWW-Authenticate Header ...
Read more >
HTTP 401 Unauthorized Error | What Is and How to Fix?
If a 401 login appears after you login, this means you gave an invalid username or password. You will need to key in...
Read more >
Re: Developer key authorization - Canvas Community
If the token is deleted or expires, the application will get a 401 Unauthorized error from the API, in which case the application...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found