Skip to content

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

Open
@atymic

Description

@atymic

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions