2017-03-28 20 views
0

創建子得到了以下錯誤,而試圖在我的應用程序文件夾中創建一個文件夾:500錯誤在爲approot

com.microsoft.graph.http.GraphFatalServiceException: [This is an unexpected error from Graph, please report this at https://github.com/microsoftgraph/msgraph-sdk-android/issues] 
     POST https://graph.microsoft.com/v1.0/me/drive/special/approot/children 
     SdkVersion : graph-android-v1.2.0 
     Authorization : bearer <REDACTED> 
{"folder":{},"name":"gg"} 

     500 : Internal Server Error 
     Duration : 234.839 
     Cache-Control : private 
X-Android-Sent-Millis : 1489454003081 
     Content-Type : application/json 
     x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"West US","Slice":"SliceA","ScaleUnit":"000","Host":"AGSFE_IN_2","ADSiteName":"WST"}} 
     request-id : f25e8a83-5b40-493f-811c-7c9731790c9f 
     Date : Tue, 14 Mar 2017 01:13:37 GMT 
     Transfer-Encoding : chunked 
     X-Android-Response-Source : NETWORK 500 
     client-request-id : f25e8a83-5b40-493f-811c-7c9731790c9f 
     X-Android-Received-Millis : 1489454003395 
     { 
     "error": { 
     "code": "generalException", 
     "message": "An unspecified error has occurred.", 
     "innerError": { 
     "request-id": "f25e8a83-5b40-493f-811c-7c9731790c9f", 
     "date": "2017-03-14T01:13:37" 
     } 
     } 
     } 

%的應用程序文件夾和創建文件夾的文件,請求應該工作給予我有「Files.ReadWrite.AppFolder」權限範圍。

我手動創建的文件夾,並試圖訪問其元數據和它類似的失敗:

com.microsoft.graph.http.GraphFatalServiceException: [This is an unexpected error from Graph, please report this at https://github.com/microsoftgraph/msgraph-sdk-android/issues] 
     GET https://graph.microsoft.com/v1.0/me/drive/special/approot:/gg: 
     SdkVersion : graph-android-v1.2.0 
     Authorization : bearer <REDACTED> 

500 : Internal Server Error 
     Duration : 199.4711 
     Cache-Control : private 
X-Android-Sent-Millis : 1489455064558 
     Content-Type : application/json 
     x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"West US","Slice":"SliceA","ScaleUnit":"003","Host":"AGSFE_IN_3","ADSiteName":"WST"}} 
     request-id : 660fad6b-491a-4876-98c5-9160c9f8715c 
     Date : Tue, 14 Mar 2017 01:31:19 GMT 
     Transfer-Encoding : chunked 
     X-Android-Response-Source : NETWORK 500 
     client-request-id : 660fad6b-491a-4876-98c5-9160c9f8715c 
     X-Android-Received-Millis : 1489455064872 
     { 
     "error": { 
     "code": "generalException", 
     "message": "An unspecified error has occurred.", 
     "innerError": { 
     "request-id": "660fad6b-491a-4876-98c5-9160c9f8715c", 
     "date": "2017-03-14T01:31:20" 
     } 
     } 
     } 

有沒有在,我可以通過它的項目ID訪問並獲取其內容,而不問題的應用程序目錄中的文件。

任何想法可能會導致此問題?

回答

0

Files.ReadWrite.AppFolder作用域當前不受支持,但不能被刪除的原因是不幸的。您需要使用不同的作用域(如Files.ReadWrite)才能訪問並創建此文件夾。

請注意,即使在更改應用程序請求的權限後,您仍需要重新發送到應用程序才能獲得新的權限。您可以強制執行此操作,以便將=提示=同意到OAuth2授權URL的末尾,或者您可以先從

中刪除您的應用程序的同意書