microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.49k stars 2.44k forks source link

Bot framework REST API calls getting timeouts #6601

Closed penguinsource closed 5 months ago

penguinsource commented 1 year ago

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

 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'
  },
dmvtech commented 1 year ago

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

penguinsource commented 1 year ago

hey @dmvtech , this is using MS Teams

tracyboehrer commented 5 months ago

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

pyramid-scheme-ceo commented 5 months ago

@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

tracyboehrer commented 5 months ago

@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.

penguinsource commented 3 months ago

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 commented 3 months ago

@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

tracyboehrer commented 3 months ago

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