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? 👀
national-gold•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.
Could you share your network tab?
national-gold•2y ago
Sure!
national-gold•2y ago
and this is when i call it in source code
Could you share
companies
request on your network tab?national-gold•2y ago
here
national-gold•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
national-gold•2y ago
Sure i will give it a try again!
by the way, could your field names be different with the example?
national-gold•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?
national-gold•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
Could you share "Response" tab of Network request?