-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
An unknown Strapi error was returned while calling Route http://127.0.0.1:8000/test/2 #16
Comments
I have the exact same problem, which is caused by line 98 of the LaravelStrapi.php vendor class:
As we can see in the screenshot postet above, the data returned via the API has a key "data" at the root level of the response. It seems the check for the entry in the LaravelStrapi.php class is not aware of that and only checks for the key "id", but lacks check of the "data" key. I changed this to:
and that resolves the problem, but is still a change in the vendor-file... |
Thanks all, please try v2.0.2 now and see if fixed? |
Tested & works! Thank you very much! |
Discussed in #15
Originally posted by bast111 April 6, 2022
Hi guys, being fairly new to Laravel i wanted to start implement a strapi backend following that tutorial here
All worked fine at first, I created a route to fetch all my localites
So I kept going and tried to create the route for one item
And this is what I get :
I can see that the api has been called successfully but I don't understand what is the problem
If anyonce can give me some insights would be really appreciated :) Thanks
The text was updated successfully, but these errors were encountered: