調用介面有時候報這個錯
Uncaught SyntaxError: Unexpected token <
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /data/vhosts/dyactive2.vip.*****.com/inc/library/interface/check_verify.php:36Stack trace:#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://webservi...', 'http://test-uri...', 1, 0)#1 [internal function]: SoapClient->__call('checkSessionid', Array)#2 /data/vhosts/dyactive2.vip.****.com/inc/library/interface/check_verify.php(36): SoapClient->checkSessionid('136274824', '1EFE297625341D0...')#3 /data/vhosts/dyactive2.vip.****.com/inc/library/functions.php(436): check_verify::getUserInfo('1EFE297625341D0...')#4 /data/vhosts/dyactive2.vip.****.com/webroot_dynamic/common_iface.php(65): islogin()#5 /data/vhosts/dyactive2.vip.****.com/webroot_dynamic/2016/fanle/index.php(81): _init_class('Index', Array, Array)#6 {main} thrown in /data/vhosts/dyactive2.vip.****.com/inc/library/interface/check_verify.php on line 36
回複內容:
調用介面有時候報這個錯
Uncaught SyntaxError: Unexpected token <
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /data/vhosts/dyactive2.vip.*****.com/inc/library/interface/check_verify.php:36Stack trace:#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://webservi...', 'http://test-uri...', 1, 0)#1 [internal function]: SoapClient->__call('checkSessionid', Array)#2 /data/vhosts/dyactive2.vip.****.com/inc/library/interface/check_verify.php(36): SoapClient->checkSessionid('136274824', '1EFE297625341D0...')#3 /data/vhosts/dyactive2.vip.****.com/inc/library/functions.php(436): check_verify::getUserInfo('1EFE297625341D0...')#4 /data/vhosts/dyactive2.vip.****.com/webroot_dynamic/common_iface.php(65): islogin()#5 /data/vhosts/dyactive2.vip.****.com/webroot_dynamic/2016/fanle/index.php(81): _init_class('Index', Array, Array)#6 {main} thrown in /data/vhosts/dyactive2.vip.****.com/inc/library/interface/check_verify.php on line 36
令牌?方便貼一下代碼嗎