Forum Discussion
smba.trafficmanager.net REQUEST_SEND_ERROR problem
Hi,
I am developing a digital assistant. In the architecture there's a REST API server behind the Teams application. Both servers are located in same network. The problem I am facing that the request send error problem if response time taking long time (5 hours) from server side. Error log says getaddrinfo ENOTFOUND smba.trafficmanager.net but I am able to ping smba.trafficmanager.net on the system where teams application is running on. I do not face with same problem in short period of time responses
Please find error log below;
RestError: request to https://smba.trafficmanager.net/emea/...... failed, reason: getaddrinfo ENOTFOUND smba.trafficmanager.net
....
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 'REQUEST_SEND_ERROR',.
.
.
Thank you for your support.
Orkun Gedik
Hi,
I fixed the problem. The problem occurred because of high number of requests (every 1 sec) to smba.trafficmanager.net by calling statement below in the code, during REST API call period.
await stepContext.context.sendActivity({ type: 'typing' });
So, firewall thinks that it is an attack and blocks to send data to after a while. I recommend send this signal every 3 secs.
Best regards,
Orkun Gedik
2 Replies
- Sayali-MSFT
Microsoft
Hello orkungedik,
Thank you for your inquiry about your Teams app development issue! To assist you better, could you please provide the following details?Reproduction Steps: Please share the steps you took to encounter the issue.
Documentation Links: Any specific documentation you followed that relates to your problem.
Teams Client Version: What version of the Teams client are you using?
Code Snippets: Relevant code snippets that illustrate the issue.
Manifest Package: If applicable, please share the manifest package for your app.
This information will help us better understand the situation and provide a more accurate response.
- orkungedikCopper Contributor
Hi,
I fixed the problem. The problem occurred because of high number of requests (every 1 sec) to smba.trafficmanager.net by calling statement below in the code, during REST API call period.
await stepContext.context.sendActivity({ type: 'typing' });
So, firewall thinks that it is an attack and blocks to send data to after a while. I recommend send this signal every 3 secs.
Best regards,
Orkun Gedik