Error - String could not be parsed as XML since 29 Jun

  • woodhouse
    Account geschlossen

    75 Beiträge

    Italien

    Hi,
    the software used by one of my customer is stable since May 2023, but the "DELETE" call is returning the error String could not be parsed as XML since 29-06-2023 16:19:42 (the time of the first call that failed).

    The customer seller ID is 1119561

    Thank you for your help.
  • woodhouse
    Account geschlossen

    75 Beiträge

    Italien

    Hi, I made more investigation and the error comes from a bad formatted xml returned by the "GET" call.
    Here are some of the error reported by the PHP library when the script tries to parse the response as xml

    Warning: SimpleXMLElement::__construct(): Entity: line 6: parser error : Opening and ending tag mismatch: hr line 5 and body
    Warning: SimpleXMLElement::__construct():
  • woodhouse
    Account geschlossen

    75 Beiträge

    Italien

    Ok, after more investigation I solved the problem.
    The issue comes from the reference used in the GET call.
    If it contains spaces then the Delcampe server returns a 400 error
    Simple to solve, the strange thing is that I did not change the code since May and any of my references contains at least 1 space.

Werden Sie Mitglied der Sammler-Community!

Anmelden Einloggen