Giter Club home page Giter Club logo

Comments (6)

hywak avatar hywak commented on May 26, 2024

Hey @AlexNovicov ,

Thank you for raising the issue. Unfortunately, our iOS dev is on vacation right now and I can't generate a JWT token signed with eXaunmL. The issue is wired to me because the library actually parses support eXaunmL. Could you please send me your JWT via email? I'd try to reproduce that problem.

from apple-sign-in-php-sdk.

AlexNovicov avatar AlexNovicov commented on May 26, 2024

So far, the logs show only one error. Perhaps this is an single case and we can wait for the you ios developer

from apple-sign-in-php-sdk.

hywak avatar hywak commented on May 26, 2024

The only idea that comes to my mind is that Apple API didn't return expected auth keys. Do you have logs of response for Apple API call for that erroneous request?

from apple-sign-in-php-sdk.

AlexNovicov avatar AlexNovicov commented on May 26, 2024

No, we only record exceptions

from apple-sign-in-php-sdk.

hywak avatar hywak commented on May 26, 2024

It might be worth to add the logger to the guzzle client, it would be easier to debug the issue if it occurs in the future. Docs: https://docs.guzzlephp.org/en/stable/request-options.html#on-stats

//... rest of the code
new GuzzleHttp\Client(
    [
        'base_uri'        => 'https://appleid.apple.com',
        'timeout'         => 5,
        'connect_timeout' => 5,
        'on_stats'        => function (TransferStats $stats) {
            // You must check if a response was received before using the
            // response object.
            if ($stats->hasResponse()) {
                echo $stats->getResponse()->getStatusCode();
            } else {
                // Error data is handler specific. You will need to know what
                // type of error data your handler uses before using this
                // value.
                var_dump($stats->getHandlerErrorData());
            }
        },
    ]
),
//... rest of the code

from apple-sign-in-php-sdk.

hywak avatar hywak commented on May 26, 2024

Closing the issue. If the error occurs again, open the new issue, please.

from apple-sign-in-php-sdk.

Related Issues (15)

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.