-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in token controller #42
Comments
I had this too. I fixed it by creating these services:
|
I am also getting this error. Perhaps it's due to a recent update in Symfony, because it was working a week ago. |
We are working on this in #43. The plan is to have it merged by tomorrow. |
Can confirm that it now works without needing to add the services in this answer. |
After the update from today and installing the nyholm/psr7 package I'm getting this error: The service alias "Psr\Http\Message\ServerRequestFactoryInterface" does not exist. |
@rubenodeman If you're still getting the error, post the entire stack trace of the error please. Make sure you're targeting |
Thanks for the quick reply! Still getting the error after clearing the cache. (1/1) InvalidArgumentExceptionThe service alias "Psr\Http\Message\ServerRequestFactoryInterface" does not exist.in ContainerBuilder.php line 899 |
@rubenodeman Make sure you have Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true] |
Solved! Thanks for the support! |
@rubenodeman No problem. I'll add a check in a compiler pass to alert the developer if the required bundles are not enabled so other folks don't run into the same situation. :) |
I have this issue after upgrading from sensio/framework-bundle 5.2.4 to 5.3.1. I've tried clearing the cache manually ( |
Opened an issue on sensio/framework-extra-bundle: https://github.com/sensiolabs/SensioFrameworkExtraBundle/issues/620 |
I just tried to update trikoder/oauth2-bundle to the
Note: I'm using symfony 4.2 (not 4.3).. |
@rbaarsma What version of |
Not targeting any version. Shouldn't that requirement be automatically upgraded when your requirements are to have it at ^1.2. It's not like I'm limiting that version somehow? |
@rbaarsma Try |
Okay so eventually I did the following:
Note that it didn't work to just update trikoder-oauth2-bundle to dev-master. This fixes my issue. I hope this version gets tagged soon ;) |
Of course just updating I'm glad that we finally fixed the issue. |
v2.0.0-beta1 was tagged and 2.0 will be tagged soon too so I'm closing this issue. |
Hey
I got this error on calling token route:
Cannot autowire argument $serverRequest of "trikoder.oauth2.controller.token_controller:indexAction()": it references interface "Psr\Http\Message\ServerRequestInterface" but no such service exists. Did you create a class that implements this interface?
The text was updated successfully, but these errors were encountered: