2anki / server

Server to create Anki flashcards faster, easier and better today ⭐️

Home Page:https://2anki.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle Notion API rate limits us

aalemayhu opened this issue · comments

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":""}'
}