national-gold
national-gold11mo ago

Record not created when I submit a form

I get status code 200 when I do a POST operation but record doesn't save to database. However I noticed that, the operation doesn't hit my spring boot backend application. The request URL is supposed to be http://localhost:8080/branchoffice/create but it's showing http://localhost:8080/branchoffice Note: that the same payload works on postman and record is saved to database
No description
No description
3 Replies
kapa.ai
kapa.ai11mo ago
Hi @gen24solo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about your issue. However, it's important to ensure that your request URL and payload are correctly configured in your refine application. You might want to check your data provider configuration in refine. The data provider is responsible for making requests to your backend API. If the URL or method is incorrect, it could lead to the issue you're experiencing. You can find more information about data providers in refine here (https://refine.dev/docs/api-reference/core/providers/data-provider). Also, ensure that your backend application is correctly set up to handle the incoming requests. If the same payload works on Postman, it's likely that the issue is with how the request is being sent from your refine application. If you're still having trouble, you might find it helpful to review the refine documentation (https://refine.dev/docs) or seek help from the refine community. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai11mo ago
<@1039768185597083648> kapa.ai is still learning and improving, please let us how it did by reacting below
national-gold
national-gold11mo ago
In addition I can fetch all database records but I can't create record From my refine frontend Ive figured it out. Thanks