Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

NoLAstNamE's avatar

Uncompleted POST request to REST api

Did anyone here experience submitting a POST request to REST API and then the server got an error but the request was still submitted, due to the server error the saving logic cannot be saved and ends up if I check another app I'm sending to, the request is there.

An example is the Payment solution, I submitted the required fields to their REST API, it was successful but there are times the server got an error and failed in the middle of the process, the request is submitted but my app didn't save because of the cut in the process.

0 likes
2 replies
richardhulbert's avatar

Are you taking about a situation where you got no response back from the server (api) or got a status that was not 200, 201 or 202? it is always helpful to post some code so we can see what and how you are trying to do things

2 likes

Please or to participate in this conversation.