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

An error will be reported in a concurrent scenario #43

Open
zonglang opened this issue Jul 2, 2023 · 1 comment
Open

An error will be reported in a concurrent scenario #43

zonglang opened this issue Jul 2, 2023 · 1 comment

Comments

@zonglang
Copy link

zonglang commented Jul 2, 2023

As the title, the detailed error is as follows

throw new Error('Unable to create a session with these credentials.');      
                  ^

Error: Unable to create a session with these credentials.
    at Object.<anonymous> (E:\***\node_modules\@stewartmcgown\grammarly-api\build\lib\auth.js:138:19)
    at Generator.next (<anonymous>)
    at fulfilled (E:\***\node_modules\@stewartmcgown\grammarly-api\build\lib\auth.js:4:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)  

The reason for this error is that too many websockets have been established, has it been officially disabled by Grammarly?

@zonglang
Copy link
Author

zonglang commented Jul 2, 2023

The response is:

Response {
  size: 0,
  timeout: 0,
  [Symbol(Body internals)]: {
    body: PassThrough {
      _readableState: [ReadableState],       
      _events: [Object: null prototype],     
      _eventsCount: 2,
      _maxListeners: undefined,
      _writableState: [WritableState],       
      allowHalfOpen: true,
      [Symbol(kCapture)]: false,
      [Symbol(kCallback)]: null
    },
    disturbed: false,
    error: null
  },
  [Symbol(Response internals)]: {
    url: 'https://auth.grammarly.com/v3/user/oranonymous?app=firefoxExt&containerId=50SOennENtp1D8z',
    status: 429,
    statusText: 'Too Many Requests',
    headers: Headers { [Symbol(map)]: [Object: null prototype] },
    counter: 0
  }
}

It seems that there are too many requests and they are restricted

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

1 participant