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

🐛 BUG: Not showing error message when a user reaches RATE_LIMITED of daily new post #1716

Open
1 task done
henriqueweiand opened this issue Jan 23, 2025 · 1 comment
Open
1 task done

Comments

@henriqueweiand
Copy link

What went wrong? 🤔

I'm a new user of Daily News, and since I have posted a few articles on other platforms, I wanted to add them to Daily News as well.
After creating a squad -> https://app.daily.dev/squads/nestjsninja, I started posting. I posted two articles as links, and then when I tried to add more, my post wasn't created like the others were, and I didn't receive an error message. I tried one more time with the console open, and I noticed that I reached the daily limit, which I wasn't aware of.
The bug report that I'd like to open is related to the user feedback that is not being shown. Thanks!

Image

The response message
{"response":{"data":{"submitExternalLink":null},"errors":[{"message":"Take a break. You already posted enough","locations":[{"line":9,"column":5}],"path":["submitExternalLink"],"extensions":{"code":"RATE_LIMITED"}}],"status":200,"headers":{}},"request":{"query":"\n mutation SubmitExternalLink(\n $sourceId: ID!\n $url: String!\n $title: String\n $image: String\n $commentary: String\n ) {\n submitExternalLink(\n url: $url\n title: $title\n image: $image\n sourceId: $sourceId\n commentary: $commentary\n ) {\n _\n }\n }\n","variables":{"url":"https://medium.com/nestjs-ninja/how-to-integrate-multiple-payment-gateways-in-nestjs-with-stripe-example-978be76af17f","title":"How to Integrate Multiple Payment Gateways in NestJS (With Stripe Example)","image":"https://miro.medium.com/v2/resize:fit:1024/1*nwaktCJcfEcgZthHmFlJjA.jpeg","sourceId":"f7c2d86d-8003-45f6-b039-cbcc85f9caff","commentary":"https://medium.com/nestjs-ninja/how-to-integrate-multiple-payment-gateways-in-nestjs-with-stripe-example-978be76af17f"}}}

Expected Behavior

Receive the error message when the RATE_LIMITED happens

Steps to Reproduce Issue

1. Create multiple post on the squad
2. With the console open get the error messsage

Solution Proposed

Update the interface to get the error and show it to the user

Screenshots

No response

Environment

No response

Browsers

Chrome

OS

Mac

Version of daily.dev

No response

Additional Context

Code of Conduct

  • I follow the conditions of this project.
@idoshamun
Copy link
Member

Hi @henriqueweiand,

Thanks for the report, we will fix it 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants