question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Operation returned an invalid status code 'NotFound' when calling TeamsOperations.FetchChannelListWithHttpMessagesAsync

See original GitHub issue

What project is affected?

latest BF

What language is this in?

C#

What happens?

Operation returned an invalid status code ‘NotFound’ at Microsoft.Bot.Connector.Teams.TeamsOperations.GetResponseAsync[T](String url, Boolean shouldTrace, String invocationId, Dictionary2 customHeaders, CancellationToken cancellationToken) at Microsoft.Bot.Connector.Teams.TeamsOperations.FetchChannelListWithHttpMessagesAsync(String teamId, Dictionary2 customHeaders, CancellationToken cancellationToken) at Microsoft.Bot.Connector.Teams.TeamsOperationsExtensions.FetchChannelListAsync(ITeamsOperations operations, String teamId, CancellationToken cancellationToken) at GetChannelList(CancellationToken cancellationToken) in C:.…\TeamsContext\TeamsContext.ChannelExtensions.cs:line 46

What are the steps to reproduce this issue?

Called the above function to retrieve some teams info and hit this error.

What were you expecting to happen?

Success.

Can you share any logs, error output, etc.?

Above. Also This is the post from previous UpdateActivity that was successful (from ngrok) POST /api/skills/v3/conversations/19:74344caa321c411591735f7122d017ac@thread.tacv2;messageid=1611212147390-l_Icm-msteams-skillconvo/activities/1611212147390
200 OK This corresponds to the failure (above) GET /api/skills/v3/teams/19:74344caa321c411591735f7122d017ac@thread.tacv2/conversations
404 Not Found

Any screenshots or additional context?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Virtual-Joshcommented, Feb 13, 2021

@ipraveenMS as far as I’m aware the TeamsInfo class has never worked with skills in any version of the SDK. If you have an example of a version of the SDK where it does work can you tell us what version? The reason it doesn’t work is due to the delegated turn context not having the required pieces to use TeamsInfo. This means there aren’t any simple workarounds currently available.

If you’re determined to do a work around I have one idea which seems reasonable, but I have not tested to confirm it works. You could setup some logic so the skill calls back to the parent when it wants to use the methods in TeamsInfo and have the parent forward the data back. If you wanted to follow this path then the parent would need to be installed in Teams so it would have access to data.

As for timelines that’s a good question. We are currently wrapping up our current cycle and will start planning work for our next cycle imminently. It’s possible that this gets picked up in our next cycle, but I’m not in a position to tell you it will definitely be in the next release.

1reaction
ipraveenMScommented, Jan 28, 2021

Even var details = await TeamsInfo.GetTeamDetailsAsync(turnContext, turnContext.Activity.TeamsGetTeamInfo().Id, cancellationToken); hit the same NOT found error. With same REST path in ngrok

Read more comments on GitHub >

github_iconTop Results From Across the Web

Operation returned an invalid status code 'NotFound ...
In Microsoft.Azure.Manangement.Media version 5.0, we have a breaking change for get functions trying to retrieve non-existing assets (source):.
Read more >
Operation returned an invalid status code 'NotFound'
Invoke-AzOperationalInsightsQuery: Operation returned an invalid status code 'NotFound' I am running a query in the portal which works fine.
Read more >
Operation returned an invalid status code 'Forbidden'/' ...
I am having a recurring problem with our Bot in Teams that I am struggling to find a root cause and fix for....
Read more >
Bulk add queue items: Operation returned an invalid status ...
Bulk add queue items: Operation returned an invalid status code 'Not Found. I have verified the following points: Queue name from orchestrator ...
Read more >
Azure Storage/subscription issue : r/AZURE
I get this error: New-AzRoleDefinition: Operation returned an invalid status code 'Forbidden'. Anyone has any idea what is the issue?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found