Closed danster99 closed 3 weeks ago
Tried to replicate this using a simple flask server setup using the 2 xmls as above. The server did not complain and was able to print out the entire xml that was sent to it. That makes me think that there should be no payload limit on the requests client while it sends out the http requests. Do you think there is some chunking happening over your network due to firewall etc? or at your server?
Test client code:
import requests
FLASK_LOCAL_URL = "http://127.0.01:5000/"
xml_output = """<?xml version="1.0" ?>....
"""
response = requests.post(
FLASK_LOCAL_URL,
data=xml_output,
headers={"Content-Type": "text/xml"},
timeout=60
)
print(response)
Output
<Response [200]>
Can you help with instructions on how to reproduce this using a test server?
I am trying to send an xml in a post request to a SOAP endpoint of a TMS server. The code is the following:
The server returns a response saying that it got an unexpected end of input in lixe x, char y. The error is dependent on the size of the xml, but is reproducible.
I am attaching 2 XMLs as examples:
EX 1:
the error here is unexpected end of input block at row 161, col 15
EX 2:
here the row is the same but the column is different