Jump to content

How to solve "urllib2.HTTPError: HTTP Error 414: Request-URI Too Large" Issue using IronPython Script


Nicholas Roberson

Recommended Posts

I am not sure what the maximum size of the URI allowed is, but it must be small.

We are attemping to hit one of our internal services and get back some predictions on data from tables. The current body of my reqest is a json list with 10 strings in it.

 

request = urllib2.Request(

PREDICT_URL + "" + encoded_params,

json.dumps(body),

{"Content-Type": "application/json"},

)

response = json.loads(urllib2.urlopen(request).read())

 

This is how we are calling our service, but are getting the error in the header when the body gets too large. Does anyone know how to solve this Is it just a parameter on the server or something that I can update in the desktop client Let me know!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...