Forum Discussion
Error Syncing Notebooks from Microsoft Fabric UI to VS Code
HI SergioTorrinha,
In fact, the above thoughts are based on the error code instead of official document.
AFAIK, the HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
Since this error is related to the credentials and you also mentioned is switch between two accounts. So I will ask you to confirm the credential reasons during these operations at first (e.g. oauth token, session and local file cache) and tried to host them to different work folders to prevent the confit issue.
When you directly switch account on the device with cache file and active sessions, they may confit the sign in operations to the new account. (it used the cache data to quickly sign-in instead of use new credentials that you provide at the second time and obviously they will cause the authorization credential issues)
Regards,
Xiaoxin Sheng
Hi Anonymous !
Sorry for late response, I've been out a couple of days to enjoy some Chrismas time with family. 🙂
Anyway, thanks for the input, from which I have tried your suggestion to clear local cache ( because I really don't know how to perform that in VS Code, I followed suggestions here, so please let me know if there is a better way to do it ) and I also switched the working folder ctlr + shift + P > Synapse: Set Local Work Folder.
After these operations, unfortunantly, I still have the 401 error.
What I find weird is that, eventhough, I am logged in with the correct user and no workspace is selected, as soon as I click the select workspace button the error is triggered...
Any thgouhts on what to do next?
Thank you.