-
Notifications
You must be signed in to change notification settings - Fork 109
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
Target [CloudCreativity\LaravelJsonApi\Contracts\Exceptions\ErrorIdAllocatorInterface] is not instantiable while building [CloudCreativity\LaravelJsonApi\Exceptions\ExceptionParser] #446
Comments
So someone else has seen this a while ago but I've never been able to reproduce it. The I'm at a loss as to what could cause this and have no way of debugging it as I've never been able to reproduce. What version of this package are you on, and what version of Laravel are you on? |
Can you try the instructions in this comment on the previous issue: |
Will do, when I get tinker back to work ... there is currently an issue with PHP 7.3...
Laravel 6.4, Laravel-Json-Api: 1.5.0 |
|
Thanks. So that's whats totally weird about this issue... you don't get an exception when resolving the exception parser out of the container in Tinker. So I have no idea what's causing it in a different scenario. My question would be: when you say this:
The request is handled fine and nothing is in the error log. So what are you doing to trigger that exception? What's the scenario/trigger for it and how are you seeing it? |
I'm seeing something similar after updating to PHP 7.4 and Laravel 5.6.
If I tinker and do this, it's fine:
This was running in a Docker container. I was originally letting the container run as root, and my composer dependencies were installed as the root user. However, after taking ownership of the |
Ah right, that's really useful to hear - implies it's a permissions issue on the files rather than a problem in the package. |
Same problem. I debugged with xdebug. I found that the problem started with the token has expired and |
For the record, I ran into this issue, too, and found the root was:
Permission issue on the Tip for others seeing this: look at the user/group of the web service vs the user/group of the sync'd files. In docker, the files are mounted as root:root, and your web server is most likely running as www-data:www-data. |
Hey,
getting this BindingResolutionException and I do not understand why this happens - the request is handled just fine, nothing in the error log... (exception must be catched somewhere)
Any idea?
The text was updated successfully, but these errors were encountered: