0
嘗試從Cloudant儀表板創建倉庫時,有時該過程會失敗,並顯示錯誤對話框。其他時候,即使在數小時後,倉庫提取仍處於觸發狀態。如何調試倉庫創建問題?
我該如何調試?例如,我可以調用API來查看正在發生的事情嗎?
嘗試從Cloudant儀表板創建倉庫時,有時該過程會失敗,並顯示錯誤對話框。其他時候,即使在數小時後,倉庫提取仍處於觸發狀態。如何調試倉庫創建問題?
我該如何調試?例如,我可以調用API來查看正在發生的事情嗎?
查看_warehouser
數據庫中的文檔,並查找warehouser_error_message
元素。例如:
"warehouser_error_message": "Exception occurred while creating table.
[SQL0670N The statement failed because the row size of the
resulting table would have exceeded the row size limit. Row size
limit: \"\". Table space name: \"\". Resulting row size: \"\".
com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-670,
SQLSTATE=54010, SQLERRMC=32677;;34593, DRIVER=4.18.60]"
倉庫錯誤消息通常會爲您提供足夠的信息來調試問題。
您可以在Cloudant儀表板中查看_warehouser文檔或使用API(例如,
export cl_username='<your_cloudant_account>'
curl -s -u $cl_username -p \
https://$cl_username.cloudant.com/_warehouser/_all_docs?include_docs=true \
| jq [.warehouse_error_code]