botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Bot framework REST API calls getting timeouts

Open penguinsource opened this issue 1 year ago • 2 comments

Describe the bug

I am sending POST requests to https://smba.trafficmanager.net/amer and receiving timeouts on my remote server (google cloud, app engine) - the same is not happening locally when using ngrok.

Nothing has changed on our code's behalf and it all started failing yesterday (June 14th).

Expected behavior

Our platform proactively sends messages to an existing conversation (through the REST url) and then continues the conversation through a bot-builder implementation.

Screenshots

image image

Additional context

  • Issue does not occur in ngrok, but it does occur on app engine instances
  • Bot has been working fine for the past 2 years, but all of a sudden, something must have happened and it's now getting all these timeouts
 error: FetchError: request to https://smba.trafficmanager.net/amer/v3/conversations/a:17cILmBogFKvwOhSb3Qb8s8s8Mvi8-v28V74WaXT2do5qpcvX2iWx7u9TIFKgjUZCbC2Sbuy3LltGjgAxKHPhYDjwOaEarjchGEhQOtN2Rax4hMDG8YjSjl_rpBR-2yaD/activities/ failed, reason: connect ETIMEDOUT 52.114.142.186:443
      at ClientRequest.<anonymous> (/workspace/node_modules/node-fetch/lib/index.js:1491:11)
      at ClientRequest.emit (events.js:400:28)
      at TLSSocket.socketErrorListener (_http_client.js:475:9)
      at TLSSocket.emit (events.js:400:28)
      at emitErrorNT (internal/streams/destroy.js:106:8)
      at emitErrorCloseNT (internal/streams/destroy.js:74:3)
      at processTicksAndRejections (internal/process/task_queues.js:82:21) {
    type: 'system',
    errno: 'ETIMEDOUT',
    code: 'ETIMEDOUT'
  },

penguinsource avatar Jun 15 '23 15:06 penguinsource

Hi @penguinsource What channel(s) is this bot using? Teams, Direct Line, etc?

dmvtech avatar Jun 27 '23 23:06 dmvtech

hey @dmvtech , this is using MS Teams

penguinsource avatar Jul 07 '23 14:07 penguinsource

This is old and perhaps no longer relevant. However, this would be a Teams issue.

tracyboehrer avatar Apr 24 '24 18:04 tracyboehrer

@tracyboehrer would like this re-opened please or do you know where else that I should raise this issue? We are getting many failures at the moment (e.g. screenshot below just from the past couple of hours) which is stopping us from sending messages and affecting customers. Note that all these requests took 20+ seconds before eventually failing.

image

pyramid-scheme-ceo avatar May 06 '24 22:05 pyramid-scheme-ceo

@pyramid-scheme-ceo What is the HTTP status code? "Faulted" isn't clear. Teams would need details about some of these calls and times. I would start with the Teams AI SDK repo, though it's possible someone else on their side needs to get involved.

tracyboehrer avatar May 07 '24 13:05 tracyboehrer

Hello! This is still an issue and it is still happening every weekend and sometimes on weekdays as well (such as today). the failure rate is very high.

The channel used is Teams

The error is still occuring at the smba.trafficmanager.net DNS.

I am going to attach the same responses I still receive which I received last year.

Specific error response: image

Here is how often it has occured in the last 30 days:

image image

I have a case open, but not with the Teams team yet. How can we reach support for this issue?

Thanks, Mihai

penguinsource avatar Jun 20 '24 02:06 penguinsource

@tracyboehrer @dmvtech can you please reopen this issue and suggest a github repository to create a separate issue in? we need this here for awareness of how old the issue has occured for

penguinsource avatar Jun 20 '24 02:06 penguinsource

@penguinsource I would start with the Teams AI SDK repo. This isn't something BF SDK can address.

tracyboehrer avatar Jun 20 '24 12:06 tracyboehrer