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.

Stopped working even if logged in

See original GitHub issue

Started getting the following error:

1618161793982 DEBUG  [TextGrammarCheckHost] (66696c) Hosting file:///Volumes/Workspace/Writing/Draft.dev/in-progress/Achieving%20Repeatability%20in%20Continuous%20Integration/Request.md
(node:392999) UnhandledPromiseRejectionWarning: Error: Socket connection failed: NOT_AUTHORIZED
    at GrammarlyClient._connect (/home/amacgregor/.vscode/extensions/znck.grammarly-0.14.0/dist/server/index.js:38903:19)
    at GrammarlyClient._queueOrSend (/home/amacgregor/.vscode/extensions/znck.grammarly-0.14.0/dist/server/index.js:38978:18)
    at /home/amacgregor/.vscode/extensions/znck.grammarly-0.14.0/dist/server/index.js:38876:18
    at new Promise (<anonymous>)
    at GrammarlyClient.send (/home/amacgregor/.vscode/extensions/znck.grammarly-0.14.0/dist/server/index.js:38874:16)
    at GrammarlyClient.start (/home/amacgregor/.vscode/extensions/znck.grammarly-0.14.0/dist/server/index.js:39160:21)
    at GrammarlyClient.onConnection [as _onConnection] (/home/amacgregor/.vscode/extensions/znck.grammarly-0.14.0/dist/server/index.js:39809:32)
(node:392999) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
znckcommented, Jul 14, 2021

The NOT_AUTHORIZED error code occurs when access token received from OAuth has expired. I haven’t implemented token deletion or refreshing. However, as a workaround you can:

  1. Logout using Grammarly: Logout from grammarly.com
  2. Reload or Restart VS Code
  3. Login using Grammarly: Login to grammarly.com

I don’t have bandwidth to fix this issue right now but I am open to PRs.

1reaction
znckcommented, Apr 29, 2021

Nice catch. I am not checking token for expiration. Will try to fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Windows 10 Login Problems [EXPERT GUIDE]
Method 1: Restart your computer​​ If you can get to the log in screen, click on the power icon in the bottom-right corner...
Read more >
Unable to connect Remote Desktop unless the PC is logged in
I had this same issue in Windows 10 - somehow Remote Desktop Services was set to startup manually. Just go into services -...
Read more >
Fix login issues on websites that require a username and ...
Fix login issues on websites that require a username and password · Enable cookies for the website · Clear history for that site...
Read more >
Windows error message: "We can't sign in to your account"
If you still can't sign in, try creating a new local administrator account, sign in to that new account, then follow the steps...
Read more >
PHP - Logout script not working. Logged in even if variable ...
No reason means that $_SESSION['logged'] is true, even if there is no code which sets it to true. I mean, I cant find...
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