Coder Social home page Coder Social logo

Comments (4)

RoboSparrow avatar RoboSparrow commented on May 27, 2024

What puzzles me as well.. there is nothing in the error.log (mode: production)

from lxhive.

RoboSparrow avatar RoboSparrow commented on May 27, 2024

Still persisting.

devel branch:
Document/Auth/OAuthToken.php, line 51: $this->getExpiresAt() I am not sure where this method comes from

/Service/Auth/OAuth.php

        $cursor->where('token', $accessToken);
        $accessTokenDocument = $cursor->current();

        if ($accessTokenDocument === null) {
            throw new \Exception('Invalid access token specified.', Resource::STATUS_FORBIDDEN);
        }

        $expiresAt = $accessTokenDocument->getExpiresAt();

$accessTokenDocument is just an assoc array?

from lxhive.

RoboSparrow avatar RoboSparrow commented on May 27, 2024

on master > development mode:

Slim Application Error

The application could not run because of the following error:
Details
Type: ErrorException
Code: 8
Message: Object of class MongoDate could not be converted to int
File: /var/www/html/lxHive/src/xAPI/Document/Auth/OAuthToken.php
Line: 51
Trace

#0 /var/www/html/lxHive/src/xAPI/Document/Auth/OAuthToken.php(51): Slim\Slim::handleErrors(8, 'Object of class...', '/var/www/html/l...', 51, Array)
#1 /var/www/html/lxHive/src/xAPI/Document/Auth/AbstractToken.php(85): API\Document\Auth\OAuthToken->getExpired()
#2 /var/www/html/lxHive/src/xAPI/Document/Auth/AbstractToken.php(97): API\Document\Auth\AbstractToken->isExpired()
#3 /var/www/html/lxHive/vendor/sokil/php-mongo/src/Document.php(789): API\Document\Auth\AbstractToken->isValid()
#4 /var/www/html/lxHive/vendor/sokil/php-mongo/src/Document.php(1192): Sokil\Mongo\Document->validate()
#5 /var/www/html/lxHive/src/xAPI/Service/Auth/OAuth.php(111): Sokil\Mongo\Document->save()
#6 /var/www/html/lxHive/src/xAPI/Service/Auth/OAuth.php(312): API\Service\Auth\OAuth->addToken(1439427698, Object(API\Document\User), Object(API\Document\Auth\OAuthClient), Array, 'p76VwNGLUexCnAT...')
#7 /var/www/html/lxHive/src/xAPI/Resource/V10/Oauth/Authorize.php(89): API\Service\Auth\OAuth->authorizePost(Object(Slim\Http\Request))
#8 /var/www/html/lxHive/public/index.php(210): API\Resource\V10\Oauth\Authorize->post()
#9 [internal function]: {closure}('oauth', 'authorize')
#10 /var/www/html/lxHive/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#11 /var/www/html/lxHive/vendor/slim/slim/Slim/Slim.php(1357): Slim\Route->dispatch()
#12 /var/www/html/lxHive/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#13 /var/www/html/lxHive/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#14 /var/www/html/lxHive/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#15 /var/www/html/lxHive/vendor/slim/slim/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
#16 /var/www/html/lxHive/public/index.php(244): Slim\Slim->run()
#17 {main}

from lxhive.

sraka1 avatar sraka1 commented on May 27, 2024

Cannot replicate on "development", should've been fixed with #13.

from lxhive.

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.