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

Sending proactive message example fails (+fix) #11461

Open
ChetanSharma-msft opened this issue Aug 14, 2024 · 2 comments
Open

Sending proactive message example fails (+fix) #11461

ChetanSharma-msft opened this issue Aug 14, 2024 · 2 comments
Assignees
Labels
needs-triage 🔍 teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@ChetanSharma-msft
Copy link
Collaborator

ChetanSharma-msft commented Aug 14, 2024

Steps to reproduce

Copied bug from: OfficeDev/teams-toolkit#12206

Details from original post:
Describe the bug

This line fails with both in test tools and in Azure due to process.env.MicrosoftAppId being undefined

//await adapter.continueConversationAsync(process.env.MicrosoftAppId, confRef, async (context) => {

Changing to this line works at least on local.
await adapter.continueConversationAsync(
new ClaimsIdentity([], true),
confRef,
async (context) => {
await context.sendActivity("proactive hello");
}
);

Does this fix makes sense? Or do I need to change something else?

roee.oz<>microsoft.com

Expected behavior

Changing to this line works at least on local.
await adapter.continueConversationAsync(
new ClaimsIdentity([], true),
confRef,
async (context) => {
await context.sendActivity("proactive hello");
}
);

Actual behavior

This line fails with both in test tools and in Azure due to process.env.MicrosoftAppId being undefined

//await adapter.continueConversationAsync(process.env.MicrosoftAppId, confRef, async (context) => {

Error details

No response

Copy link
Contributor

Hi ChetanSharma-msft! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@ChetanSharma-msft ChetanSharma-msft added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label Aug 14, 2024
@sayali-MSFT
Copy link

sayali-MSFT commented Aug 16, 2024

@roeeoz - Thanks for reporting your issue.
Ensure that process.env.MicrosoftAppId and other necessary environment variables are correctly configured in both local and deployment environments. This involves setting environment variables in your development setup and Azure App Service.

Could you please check and confirm this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage 🔍 teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

3 participants