-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GETTING EMPTY SESSION ARRAY WHEN PNR_RETRIEVE CALL FAILED #429
Comments
You should configure the Request & Response logging https://github.com/amabnl/amadeus-ws-client/blob/master/docs/how-to.rst#logging-request-and-response to find out in detail what goes wrong. Also, is this a duplicate of #428 ? |
@DerMika I have logging configured, I can't get the wrong event since one week now. |
The response to your PNR_Retrieve on line 61 of your logfile contains session data and has Something must be happening to the state of Also, lines 65-67 contain sensitive info, you may want to strip that. |
Can you try running the client code with a debugger enabled? Set a breakpoint at https://github.com/amabnl/amadeus-ws-client/blob/master/src/Amadeus/Client/Session/Handler/SoapHeader4.php#L209 and step through this function and see if it picks up the session info when handling the response of the PNR_Retrieve. If it picks that up, the problem is the state of $client in your code. If it doesn't, it may be a bug or an incompatibility with your WSAP. |
Thank you @DerMika for your time. I debug and find out that when PNR_retrieve failed (I mean with wrong PNR), the function getSessionDataFromHeader() is never called but it's being called when PNR_retrieve succeed. |
Hi @DerMika Can you guide me on how to get session info so that I can make a raw request as a workaround for avoiding losing the Amadeus slot? Did anyone encounter the same issue as I do? Thank you for your time. |
I found the problem. A PR is on the way... |
Hi , I got it also. I made the modification locally. |
Only one line added, so can I send it? |
Well, i already made it. But since you have it running locally, can you verify that the fix (#430) actually solves your problem? If so I can merge it to master |
You can merge it, it's the same one I made locally. |
released v1.12.0 which includes this fix. |
Great, thank you |
Hi,
Is it normal to have an empty array session when PNR-Retrieve fails?
Whenever it failed, getSessionData() is empty.
@bimusiek @DerMika
The text was updated successfully, but these errors were encountered: