1. 概述
FineDataLink 資料服務接收到呼叫 API 的請求後,會將請求結果資訊傳回給請求端,其中包含各類錯誤碼。
透過解讀錯誤碼,您可以快速定位問題並自助排錯。
本文為您介紹常見資料服務錯誤碼及相應含義。
2. 呼叫狀態-成功
錯誤分類 | 回應內容 | 呼叫記錄 | ||
---|---|---|---|---|
errcode | message | 呼叫狀態 | 報錯詳情 | |
- | 0 | Success. | 成功 | - |
3. 呼叫狀態-服務端失敗
錯誤分類 | 回應內容 | 呼叫記錄 | ||
---|---|---|---|---|
errcode | message | 呼叫狀態 | 報錯詳情 | |
伺服器錯誤 | 50000 | Internal server error, please check the error details in platform. | 服務端失敗 | 錯誤詳細堆疊資訊。 |
4. 呼叫狀態-用戶端失敗
錯誤分類 | 具體錯誤說明 | 回應內容 | 呼叫記錄 | ||
---|---|---|---|---|---|
errcode | message | 呼叫狀態 | 報錯詳情 | ||
路徑無效 | 路徑無效 | 40400 | Request URL not exist, please check the APPID and API path. | 無呼叫記錄 | |
請求方法錯誤 | 請求方法錯誤 | 40500 | Bad request method - expected request method: POST, actual request method: GET. | ||
請求體格式錯誤 | 請求體格式錯誤 | 40000 | Bad content type - expected content-type: application/json, actual content-type: x-www-form-urlencoded. | 用戶端失敗 | 請求體格式錯誤 - 期望請求體格式:application/json;實際請求體格式:x-www-form-urlencoded。 |
請求參數錯誤 | 請求參數未傳 | 40001 | Missing parameter - expected parameter: [ name1: type1, name2: type2 ]. | 缺少參數 - 期望傳入的參數為:[ 名稱1:類型1, 名稱2:類型2]。 | |
請求參數格式不正確 | 40002 | Invalid parameter - expected parameter: [ name1: type1, name2: type2 ]. | 錯誤參數 - 期望傳入的參數為:[ 名稱1:類型1, 名稱2:類型2]。 | ||
認證錯誤 | 認證資訊未傳 | 40100 | Missing Authorization request header. | 缺少Authorization請求頭。 | |
AppCode不正確 | 40101 | AppCode authentication failed, please check the code and try again. | AppCode認證失敗。 | ||
摘要認證資訊不正確 | 40102 | Digest authentication failed, please check the code and try again. | 摘要認證失敗。 | ||
應用授權錯誤 | 應用沒綁定對應的API | 40300 | Permission denied for this API. | 應用無權存取此API。 | |
應用綁定的API超過有效期 | 40301 | Authorization expired for this API. | 應用存取此API的授權已過期。 | ||
應用綁定的API超過存取頻率 | 40302 | Access per unit time exceeds the limit for this API. | 應用存取此API的頻率超限。 | ||
逾時錯誤 | 請求逾時 | 40800 | Request timeout. | API請求逾時。 |