Comments (13)
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 ?
from amadeus-ws-client.
@DerMika I have logging configured, I can't get the wrong event since one week now.
Please help me figure it out. Below is my log file:
from amadeus-ws-client.
The response to your PNR_Retrieve on line 61 of your logfile contains session data and has TransactionStatusCode="InSeries"
. If you check your $client->getSessionData();
after receiving this response, you should get session info.
Something must be happening to the state of $client
in the second between line 61 and 62 of your client...
Also, lines 65-67 contain sensitive info, you may want to strip that.
from amadeus-ws-client.
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.
from amadeus-ws-client.
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.
is it normal?
from amadeus-ws-client.
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?
Actually, $client->getSessionData(); is empty when pnr_retrieve failed but it getting logged.
Security_SignOut() works great when pnr_retrieve succeed.
Did anyone encounter the same issue as I do?
Exist any other workaround to close an active session after a failed call?
Thank you for your time.
from amadeus-ws-client.
I found the problem. A PR is on the way...
from amadeus-ws-client.
Hi ,
I got it also. I made the modification locally.
I was preparing the PR.
from amadeus-ws-client.
Only one line added, so can I send it?
from amadeus-ws-client.
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
from amadeus-ws-client.
You can merge it, it's the same one I made locally.
from amadeus-ws-client.
released v1.12.0 which includes this fix.
from amadeus-ws-client.
Great, thank you
from amadeus-ws-client.
Related Issues (20)
- $client->SecuritySignOut() is creating a new session instead of closing existing one. HOT 9
- how to get baggage information and cancelation policy while doing FareMasterPricerTbSearch ? HOT 1
- Commission issue in DocRefund_UpdateRefund
- HotelDescriptiveInfoRQ HOT 2
- getLastResponse() and getLastRequest() return null HOT 2
- CTCE, CTCM HOT 12
- PNR_DisplayHistory for vendor locator history
- Missing mandatory item HOT 1
- How can I make requests to be stateful? HOT 2
- 11 | Session HOT 5
- Air_MultiAvailability excluded connections question HOT 3
- ADD CONTACT IN SSR CTCM CTCE HOT 1
- Ticket_IgnoreRefund
- Ticket_IgnoreRefund : DOMDocument::loadXML() Empty string supplied as input HOT 2
- How to add Passengers Title
- Create Form of payment after PNR_AddMultiElements
- Ticket_RebookAndRepricePNR
- Booking seat for stops [PNR_AddMultiElements].
- psr/log version conflict with Laravel 10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amadeus-ws-client.