Comments (4)
What puzzles me as well.. there is nothing in the error.log (mode: production)
from lxhive.
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.
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.
Cannot replicate on "development", should've been fixed with #13.
from lxhive.
Related Issues (20)
- Does it support CMI5 ? HOT 3
- make all header names case insensitive HOT 3
- add full support HEAD requests HOT 1
- Installation problem requires ext-mongo >=0.9.0 HOT 1
- composer warning: Package league/url is abandoned
- Resolve TODO in scr/Storage/Adapter/Mongo/OAuth.php HOT 2
- Config oauth unused properties HOT 2
- composer install - php 7.0 incompatibility (dev dependency) HOT 3
- alternate request (GET>POST) syntax support fore "more" url HOT 1
- Storage activities trim trailing slash from IRL
- temporary GET / request
- ping DB via a public endpoint HOT 1
- ExtendedQuery, pagination issue wit until_id
- Abandoned package league/url HOT 1
- Default expiry time is incorrect for temporary access tokens HOT 1
- Expose Custom headers not working HOT 1
- Change lxHive organisation and ownership HOT 1
- lxHive error launch in Moodle plugin (https://github.com/davidpesce/moodle-mod_tincanlaunch)
- /statements endpoint includes "voiding statements"
- PUT to /activities/state responds with "Cannot merge!"
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 lxhive.