postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.78k stars 837 forks source link

Vscode Extension Postman Error #12902

Open muhammedfurkan opened 1 month ago

muhammedfurkan commented 1 month ago

Is there an existing issue for this?

Describe the Issue

I cannot use this plugin on VsCode.

The problem I encounter is that when I log in to my postman account, I cannot retrieve the data and postman does not work. I am attaching the relevant logs in the attachment.


(2024-05-29T18:37:00.721Z) [info] [extension] Extension activation completed: 1717007820721
(2024-05-29T18:37:00.721Z) [info] [extension] Extension activation took 29ms
(2024-05-29T18:37:20.463Z) [info] [extension] Extension activation started: 1717007840458
(2024-05-29T18:37:20.512Z) [info] [extension] Extension activation completed: 1717007840512
(2024-05-29T18:37:20.512Z) [info] [extension] Extension activation took 54ms
(2024-05-29T18:38:06.503Z) [info] [extension] Extension activation started: 1717007886497
(2024-05-29T18:38:06.554Z) [info] [extension] Extension activation completed: 1717007886554
(2024-05-29T18:38:06.554Z) [info] [extension] Extension activation took 57ms
(2024-05-29T19:33:18.691Z) [info] [extension] Extension activation started: 1717011198686
(2024-05-29T19:33:18.746Z) [info] [extension] Extension activation completed: 1717011198746
(2024-05-29T19:33:18.746Z) [info] [extension] Extension activation took 60ms
(2024-05-29T19:34:27.598Z) [info] [extension] Extension activation started: 1717011267592
(2024-05-29T19:34:27.620Z) [info] [extension] Extension activation completed: 1717011267620
(2024-05-29T19:34:27.620Z) [info] [extension] Extension activation took 28ms
(2024-05-29T19:34:53.050Z) [info] [extension] Extension activation started: 1717011293044
(2024-05-29T19:34:53.105Z) [info] [extension] Extension activation completed: 1717011293105
(2024-05-29T19:34:53.105Z) [info] [extension] Extension activation took 61ms
(2024-05-29T19:39:36.769Z) [info] [extension] Extension activation started: 1717011576764
(2024-05-29T19:39:36.794Z) [info] [extension] Extension activation completed: 1717011576794
(2024-05-29T19:39:36.794Z) [info] [extension] Extension activation took 30ms
(2024-05-29T19:39:42.133Z) [info] [extension:sidebar:adapter] fetching a correct html for the view mode: {"viewMode":"sidebar"}
(2024-05-29T19:39:42.133Z) [info] [extension:htmlProvider] get sidebar HTML
(2024-05-29T19:39:42.142Z) [info] [extension:workspaceContext:networkClient] fetch recent workspaces: {"baseUrl":"https://bifrost-extension-https-global.gw.postman.com/ws/proxy"}
(2024-05-29T19:39:42.515Z) [error] [extension:workspaceContext:networkClient] the network call failed: {"context":"Failed to fetch recent workspaces"}
(2024-05-29T19:39:42.520Z) [error] [extension:workspaceContext:networkClient] parsing the response failed: {"error":{"issues":[{"code":"invalid_type","expected":"object","received":"string","path":[],"message":"Expected object, received string"}],"name":"ZodError"}}
(2024-05-29T19:39:42.522Z) [error] [extension:workspaceContext] Failed to fetch the recent workspace from the API: {"type":"OTHER","details":"Failed to fetch recent workspaces: received unexpected data from server"}
(2024-05-29T19:39:42.523Z) [error] [extension:workspaceContext] Failed to retrieve recent workspaces: {"type":"NETWORK_FAILURE","details":"Failed to fetch recent workspaces: received unexpected data from server"}
(2024-05-29T19:39:48.045Z) [info] [extension:secretManager] Removing the account data
(2024-05-29T19:39:48.049Z) [info] [extension:globalStateManager] clearing storage
(2024-05-29T19:39:48.051Z) [info] [extension:sidebar:manager] setting the view to login app
(2024-05-29T19:39:48.051Z) [info] [extension:sidebar:adapter] fetching a correct html for the view mode: {"viewMode":"login"}
(2024-05-29T19:39:50.857Z) [info] [extension:sidebar:manager] set login state to busy
(2024-05-29T19:39:50.858Z) [info] [extension:auth] Starting the login flow
(2024-05-29T19:40:04.101Z) [info] [extension:auth] Handing the URL redirect to VSCode
(2024-05-29T19:40:04.102Z) [info] [extension:auth:client] finalising the auth handover
(2024-05-29T19:40:04.748Z) [info] [extension:auth] The sign in flow has finished successfully
(2024-05-29T19:40:04.756Z) [info] [extension:sidebar:manager] setting the view to sidebar app
(2024-05-29T19:40:04.756Z) [info] [extension:sidebar:adapter] fetching a correct html for the view mode: {"viewMode":"sidebar"}
(2024-05-29T19:40:04.756Z) [info] [extension:htmlProvider] get sidebar HTML
(2024-05-29T19:40:04.761Z) [info] [extension:workspaceContext:networkClient] fetch recent workspaces: {"baseUrl":"https://bifrost-extension-https-global.gw.postman.com/ws/proxy"}
(2024-05-29T19:40:05.073Z) [error] [extension:workspaceContext:networkClient] the network call failed: {"context":"Failed to fetch recent workspaces"}
(2024-05-29T19:40:05.075Z) [error] [extension:workspaceContext:networkClient] parsing the response failed: {"error":{"issues":[{"code":"invalid_type","expected":"object","received":"string","path":[],"message":"Expected object, received string"}],"name":"ZodError"}}
(2024-05-29T19:40:05.076Z) [error] [extension:workspaceContext] Failed to fetch the recent workspace from the API: {"type":"OTHER","details":"Failed to fetch recent workspaces: received unexpected data from server"}
(2024-05-29T19:40:05.077Z) [error] [extension:workspaceContext] Failed to retrieve recent workspaces: {"type":"NETWORK_FAILURE","details":"Failed to fetch recent workspaces: received unexpected data from server"}```

### Steps To Reproduce

(2024-05-29T18:37:00.697Z) [info] [extension] Extension activation started: 1717007820692
(2024-05-29T18:37:00.721Z) [info] [extension] Extension activation completed: 1717007820721
(2024-05-29T18:37:00.721Z) [info] [extension] Extension activation took 29ms
(2024-05-29T18:37:20.463Z) [info] [extension] Extension activation started: 1717007840458
(2024-05-29T18:37:20.512Z) [info] [extension] Extension activation completed: 1717007840512
(2024-05-29T18:37:20.512Z) [info] [extension] Extension activation took 54ms
(2024-05-29T18:38:06.503Z) [info] [extension] Extension activation started: 1717007886497
(2024-05-29T18:38:06.554Z) [info] [extension] Extension activation completed: 1717007886554
(2024-05-29T18:38:06.554Z) [info] [extension] Extension activation took 57ms
(2024-05-29T19:33:18.691Z) [info] [extension] Extension activation started: 1717011198686
(2024-05-29T19:33:18.746Z) [info] [extension] Extension activation completed: 1717011198746
(2024-05-29T19:33:18.746Z) [info] [extension] Extension activation took 60ms
(2024-05-29T19:34:27.598Z) [info] [extension] Extension activation started: 1717011267592
(2024-05-29T19:34:27.620Z) [info] [extension] Extension activation completed: 1717011267620
(2024-05-29T19:34:27.620Z) [info] [extension] Extension activation took 28ms
(2024-05-29T19:34:53.050Z) [info] [extension] Extension activation started: 1717011293044
(2024-05-29T19:34:53.105Z) [info] [extension] Extension activation completed: 1717011293105
(2024-05-29T19:34:53.105Z) [info] [extension] Extension activation took 61ms
(2024-05-29T19:39:36.769Z) [info] [extension] Extension activation started: 1717011576764
(2024-05-29T19:39:36.794Z) [info] [extension] Extension activation completed: 1717011576794
(2024-05-29T19:39:36.794Z) [info] [extension] Extension activation took 30ms
(2024-05-29T19:39:42.133Z) [info] [extension:sidebar:adapter] fetching a correct html for the view mode: {"viewMode":"sidebar"}
(2024-05-29T19:39:42.133Z) [info] [extension:htmlProvider] get sidebar HTML
(2024-05-29T19:39:42.142Z) [info] [extension:workspaceContext:networkClient] fetch recent workspaces: {"baseUrl":"https://bifrost-extension-https-global.gw.postman.com/ws/proxy"}
(2024-05-29T19:39:42.515Z) [error] [extension:workspaceContext:networkClient] the network call failed: {"context":"Failed to fetch recent workspaces"}
(2024-05-29T19:39:42.520Z) [error] [extension:workspaceContext:networkClient] parsing the response failed: {"error":{"issues":[{"code":"invalid_type","expected":"object","received":"string","path":[],"message":"Expected object, received string"}],"name":"ZodError"}}
(2024-05-29T19:39:42.522Z) [error] [extension:workspaceContext] Failed to fetch the recent workspace from the API: {"type":"OTHER","details":"Failed to fetch recent workspaces: received unexpected data from server"}
(2024-05-29T19:39:42.523Z) [error] [extension:workspaceContext] Failed to retrieve recent workspaces: {"type":"NETWORK_FAILURE","details":"Failed to fetch recent workspaces: received unexpected data from server"}
(2024-05-29T19:39:48.045Z) [info] [extension:secretManager] Removing the account data
(2024-05-29T19:39:48.049Z) [info] [extension:globalStateManager] clearing storage
(2024-05-29T19:39:48.051Z) [info] [extension:sidebar:manager] setting the view to login app
(2024-05-29T19:39:48.051Z) [info] [extension:sidebar:adapter] fetching a correct html for the view mode: {"viewMode":"login"}
(2024-05-29T19:39:50.857Z) [info] [extension:sidebar:manager] set login state to busy
(2024-05-29T19:39:50.858Z) [info] [extension:auth] Starting the login flow
(2024-05-29T19:40:04.101Z) [info] [extension:auth] Handing the URL redirect to VSCode
(2024-05-29T19:40:04.102Z) [info] [extension:auth:client] finalising the auth handover
(2024-05-29T19:40:04.748Z) [info] [extension:auth] The sign in flow has finished successfully
(2024-05-29T19:40:04.756Z) [info] [extension:sidebar:manager] setting the view to sidebar app
(2024-05-29T19:40:04.756Z) [info] [extension:sidebar:adapter] fetching a correct html for the view mode: {"viewMode":"sidebar"}
(2024-05-29T19:40:04.756Z) [info] [extension:htmlProvider] get sidebar HTML
(2024-05-29T19:40:04.761Z) [info] [extension:workspaceContext:networkClient] fetch recent workspaces: {"baseUrl":"https://bifrost-extension-https-global.gw.postman.com/ws/proxy"}
(2024-05-29T19:40:05.073Z) [error] [extension:workspaceContext:networkClient] the network call failed: {"context":"Failed to fetch recent workspaces"}
(2024-05-29T19:40:05.075Z) [error] [extension:workspaceContext:networkClient] parsing the response failed: {"error":{"issues":[{"code":"invalid_type","expected":"object","received":"string","path":[],"message":"Expected object, received string"}],"name":"ZodError"}}
(2024-05-29T19:40:05.076Z) [error] [extension:workspaceContext] Failed to fetch the recent workspace from the API: {"type":"OTHER","details":"Failed to fetch recent workspaces: received unexpected data from server"}
(2024-05-29T19:40:05.077Z) [error] [extension:workspaceContext] Failed to retrieve recent workspaces: {"type":"NETWORK_FAILURE","details":"Failed to fetch recent workspaces: received unexpected data from server"}

### Screenshots or Videos

![image](https://github.com/postmanlabs/postman-app-support/assets/9547040/9d95277e-9d97-440a-99f3-8afb6918e549)

### Operating System

macOS

### Postman Version

1.0.3

### Postman Platform

Other

### User Account Type

Signed In User

### Additional Context?

_No response_
oluwatobiiloba commented 1 week ago

Similar issue here

moonbyt3 commented 6 days ago

I had the same problem. Disable your extension, restart extensions and reenable it. Now I can see my Workspaces. Hope it helps.