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

DOMDocument::loadXML() - Premature end of data in tag html line 1 in Entity, #306

Closed
phpdave opened this issue Feb 28, 2017 · 2 comments
Closed
Assignees
Labels
V2 V2 Client

Comments

@phpdave
Copy link

phpdave commented Feb 28, 2017

I got a weird error today. It might just be a fluke but I thought I'd let you know about it. When processing a webhook notification i got this error:
Error: DOMDocument::loadXML() [domdocument.loadxml]: Premature end of data in tag html line 1 in Entity,
File: {document_root}/vendor/recurly/recurly-client/lib/recurly/response.php

Looks like the fatal error occurs within class Recurly_ClientResponse function parseErrorXml($xml)

$dom = new DOMDocument();
if (empty($xml) || !$dom->loadXML($xml)) return null;

specifically $dom->loadXML($xml).

When I processed the notification a second time it ran without a problem. So that's why I'm leaning towards a fluke.

https://github.com/recurly/recurly-client-php/blob/master/lib/recurly/response.php#L98

@bhelx bhelx self-assigned this Mar 1, 2017
@bhelx
Copy link
Contributor

bhelx commented Mar 1, 2017

Hey @phpdave

I've never seen that one before. Did you happen to log the payload? Do you know if the payload was the exact same the second time?

@aaron-junot
Copy link

This does indeed appear to be a fluke. In any case, it does not appear to be something we can reproduce

@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

No branches or pull requests

3 participants