Travelport / travelport-uapi-tutorial-php

The travelport-uapi-tutorial-php is a PHP project for Universal API that will help you connect and code a standard workflow including Air, Vehicle, and Hotel.
35 stars 47 forks source link

Authentication credentials are invalid #221

Closed rickithadi closed 5 years ago

rickithadi commented 5 years ago

Authentication works in demo but not node. Don't know what's going wrong. targetBranch is P108141

vivekjyotipramanik commented 5 years ago

Hi rickithadi,

If the credentials are working fine in demosite then the credentials are valid. Please share the exact error you are getting. Thanks.

rickithadi commented 5 years ago

Yup that's why i don't understand. Could it have something to do with the target branch? This is the SOAP response RequestSoapError.SoapRequestError: Error during request to SOAP API. Check url validity at axios.request.then.catch (/home/hadi/node_modules/uapi-json/src/Request/uapi-request.js:114:33) at process.internalTickCallback (internal/process/next_tick.js:77:7) name: 'RequestSoapError.SoapRequestError', data: { status: 401, data:{<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:faultcode>76</SOAP-ENV:faultcode><SOAP-ENV:faultstring>Authentication Result Error Message Response (76): Authentication credentials are invalid.</SOAP-ENV:faultstring><SOAP-ENV:faultactor> </SOAP-ENV:faultactor><SOAP-ENV:detail>Authentication Result Error Message Response (76): Authentication credentials are invalid.</SOAP-ENV:detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>}}'

rickithadi commented 5 years ago

Hi i feel like an idiot.

My credentials are for pre-production and I didn't realise the settings object defaults to prod. Switched that up and it works fine. Thanks loads