Giter VIP home page Giter VIP logo

Comments (13)

DerMika avatar DerMika commented on May 24, 2024

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.

dil-hf avatar dil-hf commented on May 24, 2024

@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:

laravel-2021-02-16.log

from amadeus-ws-client.

DerMika avatar DerMika commented on May 24, 2024

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.

DerMika avatar DerMika commented on May 24, 2024

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.

dil-hf avatar dil-hf commented on May 24, 2024

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.

dil-hf avatar dil-hf commented on May 24, 2024

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.

DerMika avatar DerMika commented on May 24, 2024

I found the problem. A PR is on the way...

from amadeus-ws-client.

dil-hf avatar dil-hf commented on May 24, 2024

Hi ,

I got it also. I made the modification locally.
I was preparing the PR.

from amadeus-ws-client.

dil-hf avatar dil-hf commented on May 24, 2024

Only one line added, so can I send it?

from amadeus-ws-client.

DerMika avatar DerMika commented on May 24, 2024

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.

dil-hf avatar dil-hf commented on May 24, 2024

You can merge it, it's the same one I made locally.

from amadeus-ws-client.

DerMika avatar DerMika commented on May 24, 2024

released v1.12.0 which includes this fix.

from amadeus-ws-client.

dil-hf avatar dil-hf commented on May 24, 2024

Great, thank you

from amadeus-ws-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.