We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

bug detect on Oauth

Once, when I press "Login with GIthub" I got this error:

Fatal error: Uncaught exception 'HttpInvalidParamException' with message 'Empty or too short HTTP message: ''' in /storage/htdocs/sites/forum/app/library/Github/OAuth.php:0 inner exception 'HttpRequestException' with message 'Timeout was reached; connect() timed out! (https://github.com/login/oauth/access_token)' in /storage/htdocs/sites/forum/app/library/Github/OAuth.php:75 Stack trace: #0 /storage/htdocs/sites/forum/app/library/Github/OAuth.php(0): HttpRequest->send() #1 /storage/htdocs/sites/forum/app/library/Github/OAuth.php(48): Phosphorum\Github\OAuth->send('https://github....', Array) #2 /storage/htdocs/sites/forum/app/controllers/SessionController.php(33): Phosphorum\Github\OAuth->accessToken() #3 [internal function]: Phosphorum\Controllers\SessionController->accessTokenAction() #4 [internal function]: Phalcon\Dispatcher->dispatch() #5 /storage/htdocs/sites/forum/public/index.php(36): Phalcon\Mvc\Application->handle() #6 {main} thrown in /storage/htdocs/sites/forum/app/library/Github/OAuth.php on line 0

I think you have restricted with outgoing connections.



98.9k

Thanks for reporting this