[GH-ISSUE #5321] [bug]: Unable to call collection via CLI on self-hosted deployment #2037

Open
opened 2026-03-16 22:55:36 +03:00 by kerem · 6 comments
Owner

Originally created by @nderksen3 on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5321

Originally assigned to: @mirarifhasan on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Chrome

Operating System

Windows

Bug Description

What happened

When I attempted to run the CLI to run a collection on a self-hosted deployment, it came back with the error message "Please provide file of extension type .json: cme2hfrzg0001eg04kbxdwg31" even though it was a valid collection ID. I expected that it would run the collection from the self-hosted deployment.

Steps to reproduce

  1. From within the collection viewer, right click on the collection to run, select "run collection", select the "CLI" tab, and copy the command sample that includes the correct collection ID
  2. Paste in notepad, replace the token placeholder with the correct access token, then copy/paste into command line
  3. Hoppscotch tries to run the command, but comes back with the above error message instead of running the collection.

Screenshots

Image

Additional details

I'm on company VPN in order to access Hoppscotch. Proxy is set to "browser" within the app, which works for me when running endpoints within the app itself.

Deployment Type

Self-hosted (on-prem deployment)

Version

CLI - version 0.23.2, App version 2025.2.1

Originally created by @nderksen3 on GitHub (Aug 8, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5321 Originally assigned to: @mirarifhasan on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Chrome ### Operating System Windows ### Bug Description ## What happened When I attempted to run the CLI to run a collection on a self-hosted deployment, it came back with the error message "Please provide file of extension type .json: cme2hfrzg0001eg04kbxdwg31" even though it was a valid collection ID. I expected that it would run the collection from the self-hosted deployment. ## Steps to reproduce 1. From within the collection viewer, right click on the collection to run, select "run collection", select the "CLI" tab, and copy the command sample that includes the correct collection ID 2. Paste in notepad, replace the token placeholder with the correct access token, then copy/paste into command line 3. Hoppscotch tries to run the command, but comes back with the above error message instead of running the collection. ## Screenshots <img width="966" height="64" alt="Image" src="https://github.com/user-attachments/assets/b774bfa9-1709-466f-ac1c-69fb4e96f653" /> ## Additional details I'm on company VPN in order to access Hoppscotch. Proxy is set to "browser" within the app, which works for me when running endpoints within the app itself. ### Deployment Type Self-hosted (on-prem deployment) ### Version CLI - version 0.23.2, App version 2025.2.1
Author
Owner

@nderksen3 commented on GitHub (Aug 8, 2025):

Note that this is similar to issue https://github.com/hoppscotch/hoppscotch/issues/5166 , however the solution used there to set the NODE_TLS_REJECT_UNAUTHORIZED=0 environment variable did not work for me.

<!-- gh-comment-id:3168321463 --> @nderksen3 commented on GitHub (Aug 8, 2025): Note that this is similar to issue https://github.com/hoppscotch/hoppscotch/issues/5166 , however the solution used there to set the `NODE_TLS_REJECT_UNAUTHORIZED=0` environment variable did not work for me.
Author
Owner

@jamesgeorge007 commented on GitHub (Aug 8, 2025):

Hi, since your self-hosted Hoppscotch instance is behind a VPN, could you confirm whether it's reachable at the point where you're running the CLI command?

For example, does a command like curl <your_instance_url> return a valid response?

<!-- gh-comment-id:3168784596 --> @jamesgeorge007 commented on GitHub (Aug 8, 2025): Hi, since your self-hosted Hoppscotch instance is behind a VPN, could you confirm whether it's reachable at the point where you're running the CLI command? For example, does a command like `curl <your_instance_url>` return a valid response?
Author
Owner

@nderksen3 commented on GitHub (Aug 8, 2025):

Yes, I ran curl against the same endpoint (e.g. the one shown in the screenshot ending in "/backend" from within the command line), and I got a 200 response.

<!-- gh-comment-id:3168806273 --> @nderksen3 commented on GitHub (Aug 8, 2025): Yes, I ran curl against the same endpoint (e.g. the one shown in the screenshot ending in "/backend" from within the command line), and I got a 200 response.
Author
Owner

@nderksen3 commented on GitHub (Aug 8, 2025):

The other possibility is that the CLI request is not correctly handling the SSO handshake to the server. The deployment is behind SSO for us to access with employee credentials, the curl request I made to the /backend endpoint leads to a SAML request, which in turn opens a call to our federated identity provider within the browser.

<!-- gh-comment-id:3169357466 --> @nderksen3 commented on GitHub (Aug 8, 2025): The other possibility is that the CLI request is not correctly handling the SSO handshake to the server. The deployment is behind SSO for us to access with employee credentials, the curl request I made to the /backend endpoint leads to a SAML request, which in turn opens a call to our federated identity provider within the browser.
Author
Owner

@nderksen3 commented on GitHub (Aug 26, 2025):

@jamesgeorge007 or others, any thoughts on how to resolve?

<!-- gh-comment-id:3225002271 --> @nderksen3 commented on GitHub (Aug 26, 2025): @jamesgeorge007 or others, any thoughts on how to resolve?
Author
Owner

@nderksen3 commented on GitHub (Oct 3, 2025):

@mirarifhasan Looks like this is assigned to you, any thoughts? I am still unable to use CLI, which takes away a big part of the benefit I was looking for from Hoppscotch.

<!-- gh-comment-id:3367281054 --> @nderksen3 commented on GitHub (Oct 3, 2025): @mirarifhasan Looks like this is assigned to you, any thoughts? I am still unable to use CLI, which takes away a big part of the benefit I was looking for from Hoppscotch.
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#2037
No description provided.