Questions tagged [slowapi]
6 questions
2
votes
1 answer
FastAPI and SlowAPI limit request under all “path/*”
I'm having a problem with SlowAPI. All requests are limited according to the middleware, but I cannot manage to jointly limit all requests under the path /schools/
My code:
from fastapi import FastAPI, Request, Response, status
from…

Matteo
- 118
- 2
- 12
1
vote
1 answer
FastAPI and SlowAPI not working on Ajax and getJSON request - python
I'm having a problem. When I make too many requests from browser or postman rightly the API (slowapi) blocks me as I have correctly set, but if I make a request via AJAX and jquery's $ .getJSON, the APIs don't block me. How can I solve?
My code…

Matteo
- 118
- 2
- 12
0
votes
0 answers
How to solve UnicodeDecodeError when using slowapi's Limiter to read config from an .env file?
I'm trying to make a REST API using FastAPI. Consequently, I was trying to implement rate limting for security reasons using slowapi's Limiter module.
Here is my code:
from fastapi import FastAPI, Header
from slowapi import Limiter,…
0
votes
0 answers
Exempt domain for slowapi rate limiter
Is there a way to exempt certain domains from rate limiting using the slowapi extension for Python FastAPI? I want the frontend (my_domain.com) to be exempt from rate-limiting, but any other requests should be rate limited. For example, I am looking…

gbiz123
- 11
- 6
0
votes
1 answer
Laravel Api : Slow Data Fetch
First of all, I want to make a system that instantly pulls some data using Laravel. For example: Think of it like Coin Prices. I want to fetch the values of 20 different coins from 5 different exchanges on every page refresh. Actually, I don't have…

Lütfullah Öztürk
- 1
- 2
0
votes
1 answer
using slowapi with a datamodel instead of request as parameter
I want to use slowapi on a fastapi python app, for implementing RateLimiter. However, The definitions of the endpoints use a data model for parameters (inheriting from BaseModel) rather than a request, as the documentation of slowapi require. here…

amit
- 3,332
- 6
- 24
- 32