Azure / Azure/Connectors-NET-Samples

[Bug] OneDrive ListRootFolder returns 502 BadGateway from API Hub

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3
Forks
3
Avg merge
4d 14h
Merged PRs (30d)
3

Description

## Summary

The `onedrive/root` endpoint consistently returns 502 BadGateway from the API Hub, both locally and in Azure deployment.

## Repro

`GET https://sdk-connector-samples.azurewebsites.net/api/onedrive/root`

## Error

The connector calls `GET /datasets/default/folders` which returns 502 from the API Hub gateway (source: `0a8e3a9fa83240839c163637de5e83f0.08.common.logic-df.azure-apihub.net`, innerError status 500).

## Questions to investigate

1. Is `ListRootFolderAsync()` the right API - or should `GetFilesFromFolderAsync()` be used instead?
2. Does `/datasets/default/folders` work with MSI-authenticated connections?
3. Is this a transient API Hub issue or a connection configuration problem?

## Connection details
- Namespace: `sdk-test-gateway` (nsUrlId: `0a8e3a9fa83240839c163637de5e83f0`)
- Connection: `onedriveforbusiness-test`
- MSI ACL: granted (objectId `d77681c2-bb7f-4b90-ba93-2b9cee96cbae`)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing GET /api/onedrive/root and trace ListRootFolderAsync() to the /datasets/default/folders call. Compare that path with GetFilesFromFolderAsync() and inspect the MSI-authenticated connection for the reported API Hub 502. Done means identifying whether the failure is in the selected API, MSI connection configuration, or API Hub, with a verified working path or documented blocker.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
api, authentication, backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.