Trying to open web preview in new tab

Got such error when trying to put in on another tab

401: The Workstation does not exist or your currently signed in account does not have access to it. APPLICATION_ERROR;google.cloud.workstations.v1beta/Workstations.GetWorkstation;Permission ‘workstations.workstations.get’ denied on ‘projects/monospace-4/locations/asia-east1/workstationClusters/workstation-cluster-4/workstationConfigs/monospace-config-web/workstations/idx-stateless-smap-1718265650709’;AppErrorCode=7;StartTimeMs=1721385779838;unknown;Deadline(sec)=10.0;ResFormat=uncompressed;ServerTimeSec=0.291097541;LogBytes=256;Non-FailFast;EffSecLevel=privacy_and_integrity;ReqFormat=uncompressed;ReqID=d6d27817390435d9;GlobalID=0;Server=[2002:a17:51d:a04a:b0:51f:31ff:7a43]:4002

Update 20th July:

STR:

  1. Use Google Chrome using Account A
  2. go to google and sign in Account B
  3. access Project IDX with Account B (Project IDX)
  4. open web preview in new window (observe 401)

ER:

  • able to see web preview (it was working fine before)

AR:

  • get 401 error

Analysis:

  • if use IDX on Account A in Google Chrome logged in with Account A, the behaviour is not observed
  • something wrong with the /u/1/

same kind of issue I am facing as well , unable to preview the live link while running ```npm run dev`` . tried with other project as well but same issue.

Just share the workspace with Account B.

Open the command palette (Cmd+Shift+P on Mac or Ctrl+Shift+P on ChromeOS, Windows, or Linux) and select Project IDX: Share Workspace

Then enter the gmail of Account B and click share.
Now go back to your browser where you are logged in with Account B and now you will be able to access on both accounts.