Comments (2)
Hello,
I honestly don't know how GraphQL works and how you should respond, network wise, to propagate an error.
However, you should use WithLimitReachedHandler
to override the default implementation.
With the error JSON.parse: unexpected character at line 1 column 1 of the JSON data
I'm guessing that GraphQL expect a JSON, which isn't the case in the default handler, we simply return a plain text, that's why you have this error.
For your last point, I have no idea what you're talking about. This error is also cryptic, so without any investigation on your part, I'm afraid I can't help you.
Cheers,
from limiter.
Closing since there is no update on this issue.
from limiter.
Related Issues (20)
- Change limiter rate on the fly HOT 2
- Is there any way to skip rate limit and keep service available even store crashed? HOT 2
- Does this project support redigo HOT 2
- Builds fail when using gomod HOT 2
- work behind load balancer HOT 4
- Should be flexible enough to support advanced use-cases HOT 4
- Per-route limiting HOT 2
- Reintroduce Ping function to the Client interface HOT 3
- Feature Request: Please can you add rqlite as store HOT 2
- Limit for every 5 minute HOT 1
- Please consider adding SkipList option HOT 1
- Rate limiting based on custom identity HOT 2
- ERR bad lua script for redis cluster HOT 1
- Which time windows does this limiter use? HOT 1
- Custom keys? HOT 1
- limit of dynamic route HOT 1
- Should use the rightmost ip in x-forwarded-for, if used at all HOT 7
- another dynamic limit need HOT 9
- Limiters with momery store are not working as expected HOT 3
- A key can be limited forever HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from limiter.