Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
At a glance
Goal: Fix corrupted SQLite database
Time: 5 minutes
Plugins: None
Prerequisites: Set up Dev Proxy
After starting Dev Proxy, you see the following error:
SQLite Error 11: 'database disk image is malformed'.
This error happens when Dev Proxy failed updating the SQLite database previously.
Dev Proxy uses a SQLite database for the GraphSelectGuidancePlugin to know which Microsoft Graph endpoints support the $select parameter. Dev Proxy automatically updates the database when it starts using Microsoft Graph API metadata. Updating the database can fail, for example, because you close Dev Proxy when it's writing information to the database. It corrupts the database and you start seeing the aforementioned error.
To fix the error, rebuild the database using the msgraphdb command by running:
devproxy msgraphdb