OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
434 stars 171 forks source link

Access to process.binding('http_parser') is deprecated #11678

Open ashlytom opened 1 month ago

ashlytom commented 1 month ago

Describe the bug Any link that is clicked inside the chat of the Development Toolkit team will cause the whole module to freeze and break with this error "Access to process.binding('http_parser') is deprecated". The whole application freezes.

To Reproduce Steps to reproduce the behavior:

  1. Run the teams tooklit to exceute the script. Make sure that the script produces a link inside the chat window.
  2. Click on the click
  3. This will freeze the whole window with an error message. Error Message: (node:2884) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use node --trace-deprecation ... to show where the warning was created)

Expected behavior The link opens to a new tab and the application continues to function normally.

VS Code Extension Information (please complete the following information):

MuyangAmigo commented 1 month ago

Hey @ashlytom Do you mind clarifying what scripts you are executing?

ashlytom commented 1 month ago

The script fetchs an API that pulls the relevant document details and the associated links. These outputs are then pushed for user viewing using SendActivity() . The issue is that the when anyone of the links are clicked the whole application freezes and we cant move forward. This accompanied by the following error in the debug console:

(node:2884) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated. (Use node --trace-deprecation ... to show where the warning was created)

MuyangAmigo commented 1 month ago

Hey @ashlytom - SendActivity() looks like an API from Bot Framework SDK, are you using the script along with the SDK and the SDK returned an error? Do you mind sharing any screenshot you have when this happens so we could have better ideas.

ashlytom commented 1 month ago

Sure. On clicking the link which i get from my api(as shown in this image): image

Im getting an error in the debug console: image

Post this my teams dev application is stuck and non responsive.

Wajeed-msft commented 3 weeks ago

This issue has been copied over to Microsoft Teams repo here: https://github.com/MicrosoftDocs/msteams-docs/issues/11059