amadeus-ws-client: Not getting a session
Hello, thank you for this very helpful library.
I need help on farePricePnrWithBookingClass with this error :
{ code: '1383', text: 'PNR NOT PRESENT', level: null }
I’m currently doing :
- fareMasterPricerTravelBoardSearch (Stateless)
- airSellFromRecommendation
- pnrAddMultiElements (ACTION_END_TRANSACT_RETRIEVE)
- farePricePnrWithBookingClass
Also tried it on pnrRetrieve and I am having the same error. I am certain that I am on stateful when I’m sending this messages. I even checked it using isStateful() and it is returning true. Reading through posted issues here that has same problem with me makes me understand that when I’m on stateful I should have a session details but when I checked it using getSessionData() it will give me
{ sessionId: null, sequenceNumber: null, securityToken: null }
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (10 by maintainers)
Exactly.
Each time you instantiate
Amadeus\Client
, it will be initialized without session context. Before your Client object gets destroyed, you MUST extract session information from it to persist and use again, or it’ll be lost.Take a look at this “dirty” example: https://github.com/amabnl/amadeus-ws-client/issues/240#issuecomment-428490653 Here are correct using of
Client
instance and also “caching” of session data.PNR REQUEST
PNR RESPONSE