Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 897
mmcb Avatar asked Mar 21 '23 11:03

mmcb


1 Answers

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?

like image 120
Mohamed Abd El Raouf Avatar answered Mar 27 '23 13:03

Mohamed Abd El Raouf