Unauthorized for demo workspace
Hey everyone, happy new year! Just wondering why I keep getting 'Unauthorized for demo workspace' whenever I try to upload a file. I commented out all instances of 'Unauthorized for demo workspace' in the codebase, yet the error remains. I have also cleared cache to no avail.
Just to offer a bit more context, I am running the application in dev mode on my local, and my past edits to the front and server have been successful and show up on my local.
This error is very mysterious to me because I commented out all parts of the codebase that can throw this error?
Thanks for your time reading this.
2 Replies
Hi @huiwang, did you set your workspace ids in your env variable DEMO_WORKSPACE_IDS ?
This is how this code check if the workspace is a demo one. And actions are not all enabled for demo. Make sure your workspace id is not in there
Thanks for your response. I solved the issue by deleting the dist folder and rebuilding docker.