Strapi issue.
I am trying to replicate the invoice generator from here: https://refine.dev/blog/refine-react-admin-invoice-genarator/ everything was okay until Company list page, while i am able to login using my username and password for a strange reason when Your companies loads there are no data to show even if I added a company from Strapi backend. Any ideas? Thanks in advance! 🙂
Develop your Own Customizable Invoice Generator with Refine and Str...
Looking for an invoice generator? Try out Refine. With our custom interface, you can build your own invoice in minutes! Learn more here.
34 Replies
Hey @.happy3 ,
Could it be related to permissions? Does the user you log in with have GET permissions for company collection? 👀
ratty-blush•2y ago
Good morning, sorry for the late response, here are my settings, the issue I am facing from the UI and console log i get.
![No description](https://cdn.answeroverflow.com/1028913977901715456/Screenshot_2022-10-10_091406.png)
![No description](https://cdn.answeroverflow.com/1028913978266628097/Screenshot_2022-10-10_091336.png)
![No description](https://cdn.answeroverflow.com/1028913978681856110/Screenshot_2022-10-10_091250.png)
![No description](https://cdn.answeroverflow.com/1028913979092906044/Screenshot_2022-10-10_091556.png)
Could you share your network tab?
ratty-blush•2y ago
Sure!
![No description](https://cdn.answeroverflow.com/1028917664208400484/Screenshot_2022-10-10_093108.png)
ratty-blush•2y ago
and this is when i call it in source code
![No description](https://cdn.answeroverflow.com/1029011987746787388/Screenshot_2022-10-10_154544.png)
Could you share
companies
request on your network tab?ratty-blush•2y ago
here
![No description](https://cdn.answeroverflow.com/1029012672106213486/Screenshot_2022-10-10_154835.png)
ratty-blush•2y ago
api calls seems okay!
everything looks correct.
Can you compare your code with this?
https://github.com/pankod/refine/blob/next/examples/blog/invoiceGenerator/src/pages/company/list.tsx
ratty-blush•2y ago
Sure i will give it a try again!
by the way, could your field names be different with the example?
ratty-blush•2y ago
Good morning! Connected the example from github to my strapi instance. Still facing the same issue, I will read more on strapi documentation maybe i can find the problem there.
Could you share response tab of "companies" request?
ratty-blush•2y ago
also i tried contacts, I am able to add contacts in strapi from frontend, it creates an empty record, and if I add a record in backend it is not displayed on frontend
![No description](https://cdn.answeroverflow.com/1029273959436394536/Screenshot_2022-10-11_090301.png)
![No description](https://cdn.answeroverflow.com/1029273959897759785/Screenshot_2022-10-11_090622.png)
![No description](https://cdn.answeroverflow.com/1029273960312995870/Screenshot_2022-10-11_090606.png)
Could you share "Response" tab of Network request?