cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Timeout limit when downloading media?

lmartella
Occasional Contributor
We tried sending just a couple test messages out and one failed with the following error:
errorReasonCode": "MEDIA_NOT_REACHABLE", "errorReasonSubCode": "UNSPECIFIED_SUB_CODE", "errorReasonDescription": "Timeout when downloading media"
 
Both users had the same media URL, but only 1 was successful.  I've successfully hit the media several times using postman and have always received a response - average is 85ms but sometimes was up to 400ms to respond. 
 
What is the timeout limit and is there any retry option?
3 REPLIES 3

Sam_Williams
Community Manager
Community Manager

Hello, thank you for reaching out!

 

It sounds like you're working with the Conversation API. Conversation API error codes are documented here; according to the documentation, MEDIA_NOT_REACHABLE indicates that the link wasn't accessible from the Conversation API or the underlying channel.

 

However, given that another message was able to send successfully, and the server hosting the media was able to be hit by Postman, it may have been a momentary network or connection issue.

 

Regarding the timeout constraints and retry options, I'll follow up with the development team. We will add another response to this post with any additional information. Thank you again for reaching out!

Sam Williams, Sinch Documentation Engineer

lmartella
Occasional Contributor

Thank you!  And you are correct, it is the Conversation API.  Both messages were sent at pretty much the same time. 

Tauben_Tenty
Employee
Employee

Hello,

Apologies for the delay in response here.

The timeout to retrieve media from the specified URL is 10 seconds.  Naturally, the path that Sinch takes to retrieve the media from your URL may have higher latency than you experience locally, dependent on where the URL is hosted.

If you continue to experience the error, please do raise a support ticket via support@sinch.com and we will then be able to investigate further to see the Roundtrip time from the perspective of the media injection.

 

Kind Regards.

Tauben Tenty
Sinch Product Manager, Conversational Messaging