Azure / Azure/Connectors-NET-Samples
[Bug] OneDrive ListRootFolder returns 502 BadGateway from API Hub
- Lenguaje dominante
- C#
- Estrellas
- 3
- Forks
- 3
- Merge medio
- 4 d 14 h
- PR fusionados (30 d)
- 3
Descripción
## 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`)
Guía de contribución
Línea de trabajo
Empieza reproduciendo GET /api/onedrive/root y sigue ListRootFolderAsync() hasta la llamada /datasets/default/folders. Compara esa ruta con GetFilesFromFolderAsync() e inspecciona la conexión autenticada mediante MSI para detectar el API Hub 502 reportado. Se considera terminado cuando se haya identificado si el fallo está en la API seleccionada, en la configuración de la conexión MSI o en API Hub, con una ruta funcional verificada o un bloqueo documentado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- azure, csharp
- Área
- api, authentication, backend, cloud
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 38/100