Travelport / travelport-uapi-tutorial

The travelport-uapi-tutorial is a Java project for Universal API that will help you connect and code a standard workflow including Air and Hotel.
45 stars 34 forks source link

Error: Agent has no privilege to perform Emulation. #492

Open ilievladiulian opened 6 years ago

ilievladiulian commented 6 years ago

Hello,

I get this error when I try to make an air availability request.

Request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:AvailabilitySearchReq xmlns="http://www.travelport.com/schema/common_v44_0" xmlns:ns2="http://www.travelport.com/schema/air_v44_0" xmlns:ns3="http://www.travelport.com/schema/vehicle_v44_0" xmlns:ns4="http://www.travelport.com/schema/rail_v44_0" xmlns:ns5="http://www.travelport.com/soa/common/security/SessionContext_v1" TargetBranch="P108150"><BillingPointOfSaleInfo OriginApplication="UAPI"/><ns2:SearchAirLeg><ns2:SearchOrigin><Airport Code="OTP"/></ns2:SearchOrigin><ns2:SearchDestination><Airport Code="FOR"/></ns2:SearchDestination><ns2:SearchDepTime PreferredTime="2018-05-08"/><ns2:AirLegModifiers><ns2:PreferredCabins><CabinClass Type="Economy"/></ns2:PreferredCabins></ns2:AirLegModifiers></ns2:SearchAirLeg><ns2:SearchAirLeg><ns2:SearchOrigin><Airport Code="FOR"/></ns2:SearchOrigin><ns2:SearchDestination><Airport Code="OTP"/></ns2:SearchDestination><ns2:SearchDepTime PreferredTime="2018-05-16"/><ns2:AirLegModifiers><ns2:PreferredCabins><CabinClass Type="Economy"/></ns2:PreferredCabins></ns2:AirLegModifiers></ns2:SearchAirLeg><ns2:AirSearchModifiers><ns2:PreferredProviders><Provider Code="1P"/></ns2:PreferredProviders><ns2:PermittedCarriers><Carrier Code="QF"/></ns2:PermittedCarriers></ns2:AirSearchModifiers></ns2:AvailabilitySearchReq></soap:Body></soap:Envelope>

Response: <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP:Body><SOAP:Fault><faultcode>Server.Security</faultcode><faultstring>Agent has no privilege to perform Emulation.</faultstring><detail><common_v44_0:ErrorInfo xmlns:common_v44_0="http://www.travelport.com/schema/common_v44_0"><common_v44_0:Code>319</common_v44_0:Code><common_v44_0:Service>SYSTEM</common_v44_0:Service><common_v44_0:Type>Security</common_v44_0:Type><common_v44_0:Description>Agent has no privilege to perform Emulation.</common_v44_0:Description><common_v44_0:TransactionId>0ADD142C0A076478F88E3C42EC8BFC89</common_v44_0:TransactionId></common_v44_0:ErrorInfo></detail></SOAP:Fault></SOAP:Body></SOAP:Envelope>

I also get this error when I use my credentials on the demo website (https://demo.travelportuniversalapi.com/Home).

Can you please help?

Thank you

vivekjyotipramanik commented 6 years ago

Hi ilievladiulian,

If you are using trial creedentials, Please share your username and TargetBranch. If you are using preproduction credentials, please create a MyTravelport ticket. Thanks,

ilievladiulian commented 6 years ago

Hi vivekjyotipramanik,

I am using trial credentials:

Username: Universal API/uAPI3229138438 TargetBranch: P108150

vivekjyotipramanik commented 6 years ago

Hi ilievladiulian,

We have fixed this. Could you please try again. Thanks.

ilievladiulian commented 6 years ago

Hi vivekjyotipramanik,

Now i am getting an "401: Unauthorized" error when using the API and when trying to login to the demo website.

vivekjyotipramanik commented 6 years ago

Hi ilievladiulian,

Please share the full credentials in the below email address. Thanks.

vivek.pramanik@travelport.com

ilievladiulian commented 6 years ago

Hi vivekjyotipramanik,

I sent the full credentials to the email address you provided.

Thank you!

vivekjyotipramanik commented 6 years ago

Hi ilievladiulian,

This issue is occurring to all the trial credentials users and we are working on to fix the issue. We will notify you as soon as the issue is fixed. Thanks.

destinyforeverr commented 6 years ago

@vivekjyotipramanik any update on this, i am also facing same error for my trial credentials.

vivekjyotipramanik commented 6 years ago

Hi destinyforeverr,

This actual issue was fixed long back. If you are facing any issues, Please share the exact error message and the username and TargetBranch you are using. Thanks.

destinyforeverr commented 6 years ago

@vivekjyotipramanik thanks for the info. Here are the details.

$TARGETBRANCH = 'P108150';
$CREDENTIALS = 'Universal API/uAPI3229138438

Server.Security Agent has no privilege to perform Emulation

NirandaG commented 6 years ago

Hi, Could you please send me your credentials to Niranda.gunaratna@travelport.com ? Rgds, Niranda

hamidafridi123 commented 2 years ago

Hi @vivekjyotipramanik

hamidafridi123 commented 2 years ago

Error: Agent has no privilege to perform Emulation.