Hi, I am making a request to an API from a task and the result is I am getting: a -28 as an error code and a message: “Connection timed out after 30005 milliseconds”.
I tried making the same request on Postman and it is working fine.
This is my while
While true
msg = wait(0, m.port)
If Type(msg) = "roUrlEvent"
If msg.GetSourceIdentity() = request.GetIdentity()
If msg.GetResponseCode() = 220
response = msg.GetString()
If response.len() <> 0
print ParseJson(response)
m.top.array = ParseJson(response)
Else
printDebug("Feed Failed")
m.top.statusCode = 102
End If
Else
printError(msg)
printDebug("Feed Failed")
m.top.statusCode = msg.GetResponseCode()
End If
End If
End If
End While
