Hello,
I am using the client to send a request but I get this error :
xsdata.exceptions.ParserError: not well-formed (invalid token): line 1, column 142
I read this Issue #773 . Then, I looked the code and I found that the config.encoding is only used to encode the body.
So, I made a PR to fix this by adding the self.config.encoding in the content-type header. (After testing, this fix my issue)
Thanks !
My client :
client = Client(
config=Config.from_service(
operation,
location=service_path,
encoding="utf-8",
),
parser=XmlParser(config=ParserConfig(fail_on_unknown_properties=False)),
transport=DefaultTransport(timeout=_TIMEOUT_SECONDS, session=session),
)
Hello,
I am using the client to send a request but I get this error :
xsdata.exceptions.ParserError: not well-formed (invalid token): line 1, column 142I read this Issue #773 . Then, I looked the code and I found that the config.encoding is only used to encode the body.
So, I made a PR to fix this by adding the
self.config.encodingin the content-type header. (After testing, this fix my issue)Thanks !
My client :