URL limit in Flask

Issue

I’m trying creating an API that takes a huge text as input using Flask in python.

enter image description here

When I input a small text it works and I get response [200], However for large text I get response [404] as if the route doesn’t exist. How can I get over this?

Solution

The url has a maximum length limit. I suggest you use the post method and pass the text content as the request body.
If you need Code, just comment and let me know.

Answered By – fino

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published