cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ios timeout error when making a request to a REST API

juanforero5
Participant
0 Likes
2,773

Hello everyone, I have a mobile application which has a module where you can check the company's inventory. This inventory is exposed through a REST API.

The problem is that on IOS phones when an inventory reference is consulted it throws a timeout error but on ANDROID phones and when I make the request through POSTMAN it works perfectly.

Does anyone know if there is a parameter to modify this waiting time or how I could solve this?

It is worth mentioning that all the requests to the rest service work perfectly but the problem only appears in IOS

Attached screenshot of the error

Accepted Solutions (0)

Answers (2)

Answers (2)

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Likes

The problem is that on IOS phones when an inventory reference is consulted it throws a timeout error but on ANDROID phones and when I make the request through POSTMAN it works perfectly. >> are you running the same application in both iOS and Android clients being on same network? In POSTMAN, did you test the request call directly connecting to your REST API or via mobile services proxy?

Can you try after increasing the "Timeout" value in your Mobile services destination? By default, it is 60000ms

juanforero5
Participant
0 Likes

yes, the application is developed in sap web ide using the MDK, and the IPA and APK files were built and it is working perfectly.

The application already has several users who are located in different parts, that is to say that each one is connected to a different network. but I go back and repeat the error only occurs with users who have an IOS device.

I already tried increasing the waiting time in the destination that connects the REST API but it still doesn't work.

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Likes

I will suggest you to open a support incident (select component MOB-MDK) with all these details. Please have a look at this SAP note on what information should be provided for MDK support incident.

juanforero5
Participant
0 Likes

Before that, do you happen to know if it is possible to increase the timeout to an mdk sendrequest rest service action?

evanireland
Product and Topic Expert
Product and Topic Expert
0 Likes
juanforero5
Participant
0 Likes

The problem is that this solution is given for those who are programming directly from xcode but since I have the application built with MDK I don't know where to add those options