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

Handle Notion API rate limits us #1522

Open
aalemayhu opened this issue May 18, 2024 · 0 comments
Open

Handle Notion API rate limits us #1522

aalemayhu opened this issue May 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aalemayhu
Copy link
Contributor

Seeing these errors in the logs

@notionhq/client warn: request fail {
code: 'rate_limited',
message: 'You have been rate limited. Please try again in a few minutes.'
}
APIResponseError: You have been rate limited. Please try again in a few minutes.
[redacted]
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'rate_limited',
status: 429,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
date: [Array],
'content-type': [Array],
'content-length': [Array],
connection: [Array],
'x-powered-by': [Array],
'x-notion-request-id': [Array],
'retry-after': [Array],
etag: [Array],
vary: [Array],
'cf-cache-status': [Array],
'set-cookie': [Array],
server: [Array],
'cf-ray': [Array]
}
},
body: '{"object":"error","status":429,"code":"rate_limited","message":"You have been rate limited. Please try again in a few minutes.","request_id":""}'
}

@aalemayhu aalemayhu added the bug Something isn't working label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant