Azure / Azure/Connectors-NET-Samples
[Bug] OneDrive ListRootFolder returns 502 BadGateway from API Hub
- Langage dominant
- C#
- Étoiles
- 3
- Forks
- 3
- Merge moyen
- 4 j 14 h
- PR mergées (30 j)
- 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`)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire GET /api/onedrive/root et suivez ListRootFolderAsync() jusqu'à l'appel /datasets/default/folders. Comparez ce chemin avec GetFilesFromFolderAsync() et examinez la connexion authentifiée par MSI pour le 502 signalé de l'API Hub. Le travail est terminé lorsque vous avez déterminé si l'échec se situe dans l'API sélectionnée, la configuration de la connexion MSI ou API Hub, avec un chemin fonctionnel vérifié ou un blocage documenté.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- azure, csharp
- Domaine
- api, authentication, backend, cloud
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Calme
- Clarté
- À clarifier
- Accessibilité débutants
- 38/100