238
Views
1
Comments
[Salesforce Connector] Response content type of 'text/html;charset=UTF-8', but expected 'text/xml'
Question
salesforce-connector
Web icon
Forge asset by Vera Tiago
I am unable to login to our test URI at https://test.salesforce.com/services/Soap/c/34.0

SForce_Login always returns the following message:
  • Client found response content type of 'text/html;charset=UTF-8', but expected 'text/xml'.

Could anyone shed some light on it?

Thanks
2016-11-21 23-23-05
Gonçalo Borrêga
Hi Caio,
That's usually because the response of the webservice request to authenticate is giving an error and giving back an HTML.

Something I noticed is that you're using a newer version of Salesforce API. There may be some incompatibility in the contract. Can you try instead using https://test.salesforce.com/services/Soap/u/25.0 as the server Url? 

Let us know

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.