Quickbooks PHP WebConnector(客户端发现响应内容类型为'text/html



我使用的是quickbooks webconnector,在尝试连接时,身份验证失败,我们最近所做的更改是正确地从一台服务器迁移到另一台服务器配置的数据库凭据。

这可能是一个重复的问题,但我陷入了困境,需要一些人来帮助,因为这毫无意义。

但日志显示

客户端发现响应内容类型为'text/html;charset=UTF-8,但应为"text/xml">

以下是完整的日志文件输出。

20201208.22:22:57 UTC   : UpdateThisScheduledApp() : Password management - Started
20201208.22:22:57 UTC   : UpdateThisScheduledApp() : Password management - Ended
20201208.22:22:57 UTC   : UpdateThisScheduledApp() : Performing SCHEDULED UPDATE for application = myAppName
20201208.22:22:57 UTC   : QBWebConnector.RegistryManager.getUpdateLock() : HKEY_CURRENT_USERSoftwareIntuitQBWebConnectorUpdateLock = FALSE
20201208.22:22:57 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : HKEY_CURRENT_USERSoftwareIntuitQBWebConnectorUpdateLock has been set to True
20201208.22:22:57 UTC   : QBWebConnector.RegistryManager.setUpdateLock() : ********************* Update session locked *********************
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : Initiated connection to the following application.
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppName: myAppName
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppUniqueName (if available): myAppName
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.instantiateWebService() : AppURL: {web-connector-url} ( i have removed for security)
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : *** Calling serverVersion().
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : Actual error received from web service for serverVersion call: <Client found response content type of 'text/html; charset=UTF-8', but expected 'text/xml'.
The request failed with an empty response.>. For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-serverVersion.
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_serverVersion() : This application does not contain support for serverVersion. Allowing update operation for backward compatibility.
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : *** Calling clientVersion() with following parameter:<productVersion="2.3.0.36">
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.updateWS() : Actual error received from web service for clientVersion call: <Client found response content type of 'text/html; charset=UTF-8', but expected 'text/xml'.
The request failed with an empty response.>. For backward compatibility of all webservers, QBWC will catch all errors under app-not-supporting-clientVersion.
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_clientVersion() : This application does not contain support for clientVersion. Allowing update operation for backward compatibility.
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : Authenticating to application 'myAppName', username = '{my-app-username}'
20201208.22:22:57 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : *** Calling authenticate() with following parameters:<userName="{my-app-username}"><password=<MaskedForSecurity>
20201208.22:22:58 UTC   : QBWebConnector.SOAPWebService.do_authenticate() : QBWC1012: Authentication failed due to following error message.
Client found response content type of 'text/html; charset=UTF-8', but expected 'text/xml'.
The request failed with an empty response.
More info:
StackTrace =    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at QBWebConnector.localhost.WCWebServiceDoc.authenticate(String strUserName, String strPassword)
at QBWebConnector.localhost.WCWebService.authenticate(String strUserName, String strPassword)
at QBWebConnector.SOAPWebService.authenticate(String UserName, String Password)
at QBWebConnector.WebService.do_authenticate(String& ticket, String& companyFileName)
Source = System.Web.Services

问题出在我的dsn格式上,我使用了自动生成的密码,该密码放入了特殊字符,导致格式出现问题

我以前的dsn是mysql://dbusername:password@#@localhost/dbname(在这里你可以看到@sign充当了一个分隔符,因此它抛出了错误

已更改为mysql://dbusername:password123@localhost/dbname

一切都很好

相关内容

最新更新