mmcb
mmcb

Reputation: 73

Flask Error: 414 Request-URI Too Large

I'm using Flask with Apache. When I send a GET request with a long url (19000+ characters), the response is

Status 414: Request-URI Too Large. 

I suspect that the request triggers a werkzeug RequestURITooLarge Exception or a flask HTTPException. When I send a request with similar url length to Apache directly there is no error.

Is there a way to increase the maximum url length that Flask handles?

Upvotes: 5

Views: 13133

Answers (1)

Mohamed Abd El Raouf
Mohamed Abd El Raouf

Reputation: 928

You can use POST instead of GET, but if you don't need to use it i think this question have related answer for your problem.

How do I resolve a HTTP 414 "Request URI too long" error?

Upvotes: 7

Related Questions