x icon indicating copy to clipboard operation
x copied to clipboard

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

Open devhindo opened this issue 1 year ago • 1 comments

[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 avatar Jul 20 '24 17:07 devhindo

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

mesb1 avatar Jul 20 '24 19:07 mesb1