Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing JSON.parse error in internal file of teamsFx when initiating communication from MS Teams #12886

Closed
bhaskar-012024 opened this issue Dec 10, 2024 · 3 comments
Assignees
Labels
needs attention This issue needs the attention of a contributor.

Comments

@bhaskar-012024
Copy link

Key Components Used:

  1. Azure Bot: For creation of the Bot which is referred in the Teams app. Here the target was the Azure WebApp. Any message to the bot will go through the Azure Bot and then to the Azure WebApp
  2. Azure WebApp: This is the place where my Node.js server resides and here we are using teams toolkit(teamsFx) for developed logic related to the bot interaction.

Recently we started getting errors when the user interacts with the Bot via Teams app. Interesting thing is we haven't made any changes to the Azure Bot or WebApp or any component in the structure recently but suddenly we stated seeing below error that is refereeing to a JSON.parse statement in the @microsoft/teamsfx/dist/index.node.cjs.js internal file, which obviously we haven't directly called in any of our code. Previously it is working perfectly fine, and we don't have any issue but not sure why we are receiving this error now without any change in configuration or code.

When we test the same bot directly from the Azure portal inside Azure Bot> Settings> Test in Web Chat it is working perfectly fine but we are getting issue only when there is any conversation from the MS Teams channel.

image

I am using the TeamsFx version of 2.3.1 and i tried to update it to 2.3.2 and 2.3.3 but still facing the issue. My Azure app node version was 20 and i tried with 18 also but no luck.

Please let me know if any further information is required. Any help in resolving issue is much appreciated.

Copy link
Contributor

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Dec 10, 2024
@sayali-MSFT
Copy link

Duplicate question of-#12887

@adashen
Copy link
Contributor

adashen commented Dec 12, 2024

close as duplicate

@adashen adashen closed this as completed Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs attention This issue needs the attention of a contributor.
Projects
None yet
Development

No branches or pull requests

5 participants