SimpleXMLElement error, error message HTTP error 503

Source: Internet
Author: User
The API to execute Pannalesports (it's a data-grabbing API anyway)
I use SimpleXMLElementConvert data to XML format so I could intercept it. But there is always an error after a period of execution

P.s. I'm going to curl up with curl.

curl_setopt($httpChannel, CURLOPT_URL, $url);curl_setopt($httpChannel, CURLOPT_RETURNTRANSFER, true);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $IP);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $header);curl_setopt($httpChannel, CURLOPT_SSL_VERIFYPEER, false);$data = curl_exec($httpChannel);

(This is not really the point)

The focus is on the following error message
I use try, SimpleXMLElement when wrong, put data and $e print_r come out as after

Exception Object ([message:protected] = String could not is parsed as XML [string:private] = [code:protected] =&G T 0 [file:protected] =/home/ns/www/gamble/mlb.php [line:protected] = [trace:private] = = Array ([0] = ARR Ay ([file] =/home/ns/www/gamble/mlb.php [line] = [function] = __construct [Class] = SimpleXMLElement [Type] = = [Args] = Array ([0] =))) 2014-10_01 20:02:12exception Object ([message:protected] = String could not being parsed as XML [string:private] = [code:protected] + 0 [file:protected] =/home/ns/www/gamb le/mlb.php [line:protected] = [trace:private] = = Array ([0] = = Array ([file] = =/home/ns/www/gamble/mlb. php [Line] = [function] = __construct [class] + simplexmlelement [type] = = [Args] = Array ([0 ]))) warning:simplexmlelement::__construct (): Entity:line 1:parser error:space required after the public I Dentifier In/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warnin G:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line, Warning:simplexmlelement::__construct ( ): Entity:line 6:parser error:opening and ending tag mismatch:hr line 5 and BODY in/home/ns/www/gamble/mlb.php on Li Ne warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__construct (): Entity:line 6:parser Error:opening and ending tag mismatch:body line 4 and HTML in/home/ns/www/gamble/mlb.php on line Warning:simplexml Element::__construct (): in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): ^ in/home/  ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): Entity:line 7:parser error:premature End of Data in tag HEAD line 2 in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warn Ing:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): Entity:line 7:parser error:premature end of data in tag HTML Line 2 in/home/ns/www/gamble/mlb.php on Lin E warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__  Construct (): ^ in/home/ns/www/gamble/mlb.php on line 66

$e errors are as follows

Service UnavailableHTTP Error 503. The service is unavailable.

Is there a way to release or debug?

Reply content:

The API to execute Pannalesports (it's a data-grabbing API anyway)
I use SimpleXMLElement the format of turning data into XML so that I could intercept it. But there is always an error after a period of execution

P.s. I'm going to curl up with curl.

curl_setopt($httpChannel, CURLOPT_URL, $url);curl_setopt($httpChannel, CURLOPT_RETURNTRANSFER, true);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $IP);curl_setopt($httpChannel, CURLOPT_HTTPHEADER, $header);curl_setopt($httpChannel, CURLOPT_SSL_VERIFYPEER, false);$data = curl_exec($httpChannel);

(This is not really the point)

The focus is on the following error message
I use try, SimpleXMLElement when wrong, put data and $e print_r come out as after

Exception Object ([message:protected] = String could not is parsed as XML [string:private] = [code:protected] =&G T 0 [file:protected] =/home/ns/www/gamble/mlb.php [line:protected] = [trace:private] = = Array ([0] = ARR Ay ([file] =/home/ns/www/gamble/mlb.php [line] = [function] = __construct [Class] = SimpleXMLElement [Type] = = [Args] = Array ([0] =))) 2014-10_01 20:02:12exception Object ([message:protected] = String could not being parsed as XML [string:private] = [code:protected] + 0 [file:protected] =/home/ns/www/gamb le/mlb.php [line:protected] = [trace:private] = = Array ([0] = = Array ([file] = =/home/ns/www/gamble/mlb. php [Line] = [function] = __construct [class] + simplexmlelement [type] = = [Args] = Array ([0 ]))) warning:simplexmlelement::__construct (): Entity:line 1:parser error:space required after the public I Dentifier In/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warnin G:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line, Warning:simplexmlelement::__construct ( ): Entity:line 6:parser error:opening and ending tag mismatch:hr line 5 and BODY in/home/ns/www/gamble/mlb.php on Li Ne warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__construct (): Entity:line 6:parser Error:opening and ending tag mismatch:body line 4 and HTML in/home/ns/www/gamble/mlb.php on line Warning:simplexml Element::__construct (): in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): ^ in/home/  ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): Entity:line 7:parser error:premature End of Data in tag HEAD line 2 in/home/ns/www/gamble/mlb.php on Line warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line Warn Ing:simplexmlelement::__construct (): ^ in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__ Construct (): Entity:line 7:parser error:premature end of data in tag HTML Line 2 in/home/ns/www/gamble/mlb.php on Lin E warning:simplexmlelement::__construct (): in/home/ns/www/gamble/mlb.php on line warning:simplexmlelement::__  Construct (): ^ in/home/ns/www/gamble/mlb.php on line 66

$e errors are as follows

Service UnavailableHTTP Error 503. The service is unavailable.

Is there a way to release or debug?

HTTP error 503 is a server internal error.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.