一目了然
目標: 修復損壞的 SQLite 資料庫
時間: 5分鐘
插件: 沒有
前置條件:設定開發代理
啟動開發 Proxy 之後,您會看到下列錯誤:
SQLite Error 11: 'database disk image is malformed'.
當開發代理先前未能更新 SQLite 資料庫時,就會發生此錯誤。
Dev Proxy 會針對 GraphSelectGuidancePlugin 使用 SQLite 資料庫,以瞭解哪些 Microsoft Graph 端點支援 $select 參數。 開發人員 Proxy 會在資料庫開始使用 Microsoft Graph API 元數據時自動更新資料庫。 例如,更新資料庫可能會失敗,因為當您將資訊寫入資料庫時關閉 Dev Proxy。 資料庫損毀,您開始看到上述錯誤。
若要修正錯誤,請使用 msgraphdb 命令重建資料庫,方法是執行:
devproxy msgraphdb