I wrote an interface that requires the app to send data via post and store it in the database. However, there is no problem on the Android side. Why does iOS keep reporting an error, 404? Has anyone encountered this before?
Strictly speaking, 404 is not an interface error. It means that the connection port is not found. It is recommended that you capture the packet and take a look.
Is it sporadic, or is it 404 for every ios request? If it is sporadic, it may be that the amount of data passed to the interface through post is too much. This is also a possible reason. I used node.js some time ago. I have encountered this occasional situation when working on the backend, please try it based on your own situation
Use fiddler to capture the packet and see which path is requested by ios. Maybe ios has written the wrong path
Compare the requests of ios and Android
Request
404
It means that the address of this interface was not found. Is the interface address written wrong?Strictly speaking, 404 is not an interface error. It means that the connection port is not found. It is recommended that you capture the packet and take a look.
Send a get request from ios
Is it sporadic, or is it 404 for every ios request? If it is sporadic, it may be that the amount of data passed to the interface through post is too much. This is also a possible reason. I used node.js some time ago. I have encountered this occasional situation when working on the backend, please try it based on your own situation
There is an error in the backend or the return value is incorrect