Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xml for post data was invalid (hexadecimal value 0x02) #832

Open
atymic opened this issue Oct 19, 2021 · 1 comment
Open

Xml for post data was invalid (hexadecimal value 0x02) #832

atymic opened this issue Oct 19, 2021 · 1 comment

Comments

@atymic
Copy link
Contributor

atymic commented Oct 19, 2021

Hi,

Having an issue with one of the requests to create an invoice, getting this error.
I added a log statement just before the request is sent, and the xml looks fine. I can't see any issues in it.

Exact exception:

XeroPHP/Remote/Exception/BadRequestException with message 'Xml for post data was invalid, '', hexadecimal value 0x02, is an invalid character. Line 149, position 251. ()'

I can provide the XML file directly if needed for debugging (it contains private info).

@calcinai
Copy link
Owner

Where exactly is that character? In the markup or the content?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants