[GH-ISSUE #3331] [bug]: Collections view does not refresh after creating a collection or adding a new request #1109

Open
opened 2026-03-16 18:36:31 +03:00 by kerem · 12 comments
Owner

Originally created by @lovaszvencel on GitHub (Sep 8, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3331

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I switch the workspace from my workspace to any other team workspace the collection view top refreshing it after adding items into it.

For example, if I create a new collection and save it it does not appear in the list (list remains empty). I expect to see the newly created collection in the list (as works in my workspace). After I refresh the page the newly created collection appears on the list.
Other example, if I create a new request and save it it does not appear in the list (list contains the collection only). I expect to see the newly created request in the list (as works in my workspace). After I refresh the page the newly created request appears on the list.

Steps to reproduce

  1. Create a new team
  2. Create a new collection
  3. Save the dialog
    Actual result: Collection list is empty
    Expected result: Newly created collection is appear

Environment

Production

Version

Self-hosted

Originally created by @lovaszvencel on GitHub (Sep 8, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3331 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I switch the workspace from my workspace to any other team workspace the collection view top refreshing it after adding items into it. For example, if I create a new collection and save it it does not appear in the list (list remains empty). I expect to see the newly created collection in the list (as works in my workspace). After I refresh the page the newly created collection appears on the list. Other example, if I create a new request and save it it does not appear in the list (list contains the collection only). I expect to see the newly created request in the list (as works in my workspace). After I refresh the page the newly created request appears on the list. ### Steps to reproduce 1. Create a new team 2. Create a new collection 3. Save the dialog Actual result: Collection list is empty Expected result: Newly created collection is appear ### Environment Production ### Version Self-hosted
Author
Owner

@frnk01 commented on GitHub (Sep 13, 2023):

Same for me. Need to refresh manually after performing actions. Self hosted.

<!-- gh-comment-id:1717804232 --> @frnk01 commented on GitHub (Sep 13, 2023): Same for me. Need to refresh manually after performing actions. Self hosted.
Author
Owner

@JamesSFL commented on GitHub (Nov 17, 2023):

Same here. Occurs in case of team workspace. Self hosted too.

<!-- gh-comment-id:1815831081 --> @JamesSFL commented on GitHub (Nov 17, 2023): Same here. Occurs in case of team workspace. Self hosted too.
Author
Owner

@KatyaGolyagina commented on GitHub (Feb 13, 2024):

Same on https://hoppscotch.io/ not only Self hosted.
We're really looking forward to the fix! 😔🙏

<!-- gh-comment-id:1941774637 --> @KatyaGolyagina commented on GitHub (Feb 13, 2024): Same on https://hoppscotch.io/ not only Self hosted. We're really looking forward to the fix! 😔🙏
Author
Owner

@buderjoh commented on GitHub (Mar 5, 2024):

I think this might be a configuration issue?

https://github.com/hoppscotch/hoppscotch/issues/3587#issuecomment-1845447776

If its running under https -> VITE_BACKEND_WS_URL=wss://localhost:3170/graphql works for me
and i think it would work the other way around for http -> VITE_BACKEND_WS_URL=ws://localhost:3170/graphql

Nevertheless if you do it with your local workspace there is still this issue: https://github.com/hoppscotch/hoppscotch/issues/3208

<!-- gh-comment-id:1978456479 --> @buderjoh commented on GitHub (Mar 5, 2024): I think this might be a configuration issue? https://github.com/hoppscotch/hoppscotch/issues/3587#issuecomment-1845447776 If its running under https -> VITE_BACKEND_WS_URL=**wss**://localhost:3170/graphql works for me and i think it would work the other way around for http -> VITE_BACKEND_WS_URL=**ws**://localhost:3170/graphql Nevertheless if you do it with your local workspace there is still this issue: https://github.com/hoppscotch/hoppscotch/issues/3208
Author
Owner

@KatyaGolyagina commented on GitHub (Apr 18, 2024):

I think this might be a configuration issue?

#3587 (comment)

If its running under https -> VITE_BACKEND_WS_URL=wss://localhost:3170/graphql works for me and i think it would work the other way around for http -> VITE_BACKEND_WS_URL=ws://localhost:3170/graphql

Nevertheless if you do it with your local workspace there is still this issue: #3208

doesn't work

<!-- gh-comment-id:2063315037 --> @KatyaGolyagina commented on GitHub (Apr 18, 2024): > I think this might be a configuration issue? > > [#3587 (comment)](https://github.com/hoppscotch/hoppscotch/issues/3587#issuecomment-1845447776) > > If its running under https -> VITE_BACKEND_WS_URL=**wss**://localhost:3170/graphql works for me and i think it would work the other way around for http -> VITE_BACKEND_WS_URL=**ws**://localhost:3170/graphql > > Nevertheless if you do it with your local workspace there is still this issue: #3208 doesn't work
Author
Owner

@AlirezaAbsolution commented on GitHub (Sep 2, 2024):

Hi, i have same problem. I use hoppscotch as reverse proxy for mine. The problem is wss if anyone using reverse proxy add this lines in location / in nginx and problem will be fixed.

location / {
        proxy_pass http://x.x.x.x:3170/;
        include proxy_params;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

#Solved

<!-- gh-comment-id:2325144292 --> @AlirezaAbsolution commented on GitHub (Sep 2, 2024): Hi, i have same problem. I use hoppscotch as reverse proxy for mine. The problem is wss if anyone using reverse proxy add this lines in location / in nginx and problem will be fixed. ``` location / { proxy_pass http://x.x.x.x:3170/; include proxy_params; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } ``` #Solved
Author
Owner

@MrNoize commented on GitHub (Oct 15, 2024):

Hi. If you deploy hoppscotch on k8s cluster add this to annotation of ingress(snippets should be enabled):


  annotations:
    nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
    nginx.ingress.kubernetes.io/server-snippets: |
      location / {
        proxy_set_header Upgrade $http_upgrade;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header Connection "upgrade";
        proxy_cache_bypass $http_upgrade;
        }

(Probably you shouldn't set headers for / location, try /graphql)

<!-- gh-comment-id:2414228059 --> @MrNoize commented on GitHub (Oct 15, 2024): Hi. If you deploy hoppscotch on k8s cluster add this to annotation of ingress(snippets should be enabled): ``` annotations: nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" nginx.ingress.kubernetes.io/server-snippets: | location / { proxy_set_header Upgrade $http_upgrade; proxy_http_version 1.1; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_set_header Connection "upgrade"; proxy_cache_bypass $http_upgrade; } ``` (Probably you shouldn't set headers for / location, try /graphql)
Author
Owner

@Systemko commented on GitHub (Oct 30, 2024):

I can confirm that this is a configuration issue. If you are running your hoppscotch instance under https, you have to use secure web socket connection in VITE_BACKEND_WS_URL(wss not ws). But there is still an issue that we've stumbled upon. You really need to delete cookies from your browser because hoppscotch graphql backend path is cached.
P.S. To delete cookies in google chrome you need to proceed to chrome://settings/content/all, find your hoppscotch site address and click the bin icon.

<!-- gh-comment-id:2446010031 --> @Systemko commented on GitHub (Oct 30, 2024): I can confirm that this is a configuration issue. If you are running your hoppscotch instance under https, you have to use secure web socket connection in VITE_BACKEND_WS_URL(**wss** not ws). But there is still an issue that we've stumbled upon. You really need to delete cookies from your browser because hoppscotch graphql backend path is cached. P.S. To delete cookies in google chrome you need to proceed to chrome://settings/content/all, find your hoppscotch site address and click the bin icon.
Author
Owner

@am071092 commented on GitHub (Jan 8, 2025):

Hi, I am facing the same issue as above, even after using secure web connection via wss. Is there a fix for this?

<!-- gh-comment-id:2578673968 --> @am071092 commented on GitHub (Jan 8, 2025): Hi, I am facing the same issue as above, even after using secure web connection via wss. Is there a fix for this?
Author
Owner

@Systemko commented on GitHub (Jan 9, 2025):

Hi, I am facing the same issue as above, even after using secure web connection via wss. Is there a fix for this?

Did you clear hoppscotch cache in your browser as I had mentioned above?

<!-- gh-comment-id:2579155672 --> @Systemko commented on GitHub (Jan 9, 2025): > Hi, I am facing the same issue as above, even after using secure web connection via wss. Is there a fix for this? Did you clear hoppscotch cache in your browser as I had mentioned above?
Author
Owner

@QuentinDEME97 commented on GitHub (Jul 3, 2025):

Using Traefik, the only thing I changed is:

urls:
      base: "https://app.hoppscotch"
      shortcode: "https://app.hoppscotch."
      admin: "https://admin.hoppscotch"
      backend:
        gql: "https://backend.hoppscotch/graphql"
        ws: "wss://backend.hoppscotch/graphql" <-- THIS from ws: to wss:
        api: "https://backend.hoppscotch./v1"
      redirect: "https://app.hoppscotch."
      whitelistedOrigins: "https://backend.hoppscotch.,https://app.hoppscotch.,https://admin.hoppscotch."
<!-- gh-comment-id:3033037800 --> @QuentinDEME97 commented on GitHub (Jul 3, 2025): Using Traefik, the only thing I changed is: ``` urls: base: "https://app.hoppscotch" shortcode: "https://app.hoppscotch." admin: "https://admin.hoppscotch" backend: gql: "https://backend.hoppscotch/graphql" ws: "wss://backend.hoppscotch/graphql" <-- THIS from ws: to wss: api: "https://backend.hoppscotch./v1" redirect: "https://app.hoppscotch." whitelistedOrigins: "https://backend.hoppscotch.,https://app.hoppscotch.,https://admin.hoppscotch." ```
Author
Owner

@Moundlen commented on GitHub (Mar 13, 2026):

Hi,

I can confirm the bug is still there but only on desktop client. The web client everything updates properly but on desktop some updates are not refreshed especially duplicating a route or creating a new directory.

Makes it quite hard to properly work on it. And yes wss is properly configured no issue on the webapp.

<!-- gh-comment-id:4055592994 --> @Moundlen commented on GitHub (Mar 13, 2026): Hi, I can confirm the bug is still there but only on desktop client. The web client everything updates properly but on desktop some updates are not refreshed especially duplicating a route or creating a new directory. Makes it quite hard to properly work on it. And yes wss is properly configured no issue on the webapp.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1109
No description provided.