question

Upvotes
Accepted
46 1 1 4

Messenger Bot API server connection issues

Hi,

I've found that I occasionally get server connection issues when trying to refresh the authentication token every five minutes.


2022-11-02 11:56:32.157+0100 root                : USER: INFO     refreshing authentication token.
2022-11-02 11:56:46.622+0100 root                : USER: ERROR    RDP authentication result failure: 500 Internal Server Error
2022-11-02 11:56:46.625+0100 root                : USER: ERROR    Text: {"error":"server_error"  ,"error_description":"Request "XXXX-XXXX-XXXX-XXXX-XXXX" has failed on backend call timeout" } 
2022-11-02 11:56:46.627+0100 root                : USER: ERROR    IOError Exception: Expecting ',' delimiter: line 1 column 57 (char 56)
2022-11-02 11:56:53.811+0100 root                : USER: ERROR    RDP authentication result failure: 400 Bad Request
2022-11-02 11:56:53.814+0100 root                : USER: ERROR    Text: {"error":"access_denied"  ,"error_description":"Thread interrupted while sleeping; nested exception is java.lang.InterruptedException: sleep interrupted" } 


It seems that some server error occurs. Do you know why? Is it due to the thread, websocket or server API?


I'm using the tutorial which can be downloaded here: https://developers.refinitiv.com/content/dam/devportal/api-families/messenger-api/messenger-bot-api/downloads/messenger_bot_api_example_python.zip


Thanks in advance.


Best,

Cemil



#technologyconnection-errormessenger-bot-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


1 Answer

· Write an Answer
Upvotes
Accepted
24.6k 54 17 14

Hello @Cemil Yigit

Sorry for the inconvenience.

An error message “XXX has failed on backend call timeout” is usually caused by internal issues inside the platform, so the platform interrupts the request after 9 seconds to avoid problems. The server team advises that the application should have a retry logic (2-3 times) with exponential backoff as this issue is intermittent and the request should be fine on the next attempt.

Hope this helps.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.