2016-10-03 45 views
0

我想通過Azure API管理的REST API導入一個Swagger定義,遵循this blogreference documentation上的步驟。然而,我收到500錯誤的迴應,身體:Azure API管理返回一個InternalServerError,同時PUT'Sawagger定義

{ 
    "error": { 
    "code": "InternalServerError", 
    "message": "Request processing failed due to internal error.", 
    "details": null 
    } 
} 

我的請求適用於GET,但不適用於PUT。任何人都可以指出我的請求有什麼問題或潛在的設置問題,我應該看看?

這是我送的要求:

PUT /apis/{app-id}?api-version=2014-02-14-preview&import=true HTTP/1.1 
Host: {tenant}.management.azure-api.net 
Authorization: SharedAccessSignature uid={uid}&ex={ex}&sn={sn} 
Content-Type: application/vnd.swagger.link+json 
If-Match: * 
Cache-Control: no-cache  
{ 
    "link": "{app}.cloudapp.azure.com:8165/swagger/docs/0" 
} 

回答

0

「鏈接」 值應包含的模式,即以 「http://」 或 「https://」。我們將解決此問題以提供更有意義的錯誤消息。

+0

U_U * headdesk * 非常感謝你 –