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

Add handling for reaching the limit of 50 tweets per day. #58

Open
devhindo opened this issue Jul 20, 2024 · 1 comment
Open

Add handling for reaching the limit of 50 tweets per day. #58

devhindo opened this issue Jul 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@devhindo
Copy link
Owner

[POST] /api/tweets/post status=500

returns failed to unmarshal response when the limit is reached

or it just returns nothing.

It should return daily limit reaches as the app complies with the free plan. Counter resets tomorrow or whatever.

Error

 error TwitterResponseError
    at request (/var/task/src/server/.next/server/chunks/790.js:4098:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async rest (/var/task/src/server/.next/server/chunks/790.js:4127:22)
    at async POST (/var/task/src/server/.next/server/app/api/tweets/post/route.js:175:18)
    at async /var/task/src/server/.next/server/chunks/501.js:5773:37 {
  status: 429,
  statusText: 'Too Many Requests',

related to #47

@devhindo devhindo added the bug Something isn't working label Jul 20, 2024
@mesb1
Copy link

mesb1 commented Jul 20, 2024

Not only 50, for example some day it someone bought some plan, so it must be limited to amount of included limit.

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

2 participants