Repository navigation
Laravel Passport Connection Refused when posting credentials using Guzzle/Http Facade #47661
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have just finished configure Passport v11 in my API, but I am having issue issuing tokens.
php artisan server --port=5000When I try to login using postman:
With PHP8.1, after a while I get the error below:
With PHP8.2
Here is where I make the call:
But when I directly POST to
http://127.0.0.1:5000/oauth/tokenwith all the required params in the snippet above, the token is issued without any issue.
I would like to note that, I have a similar setup for another project with Passport v7 and it works without issue, but with most recent version of Passport I am getting the same problem.
For instance, I have another project, which just hang when trying to logging locally but work on the live server.
Edit:
Event though to token is return and the above error is thrown, record for
oauth_access_tokens&oauth_refresh_tokensare being created in the database.Edit: issue sovled
I decide to start using Laravel-valet again, I am just surprised that, it is working with one API and the rest not.
All reactions