mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3291] [bug]: unable to run the collection using env file from hoppscotch cli #1090
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1090
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nids2307 on GitHub (Aug 24, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3291
Is there an existing issue for this?
Current behavior
There is import/export of environment file is not available at the individual environment file level. It is only available to export all the environment files including variables from those multiple files.
Macbook terminal:
The exported format does not work in Hoppscotch cli and throws error:
Hoppscotch % hopp test -e HS_reqres_env.json Sandbox.json
MALFORMED_ENV_FILE HS_reqres_env.json
Contents of the env file:
[
{
"name": "Reqres QA",
"variables": [
{
"key": "base_url",
"value": "https:/reqres.in/api/"
}
]
}
]
I tried updating the above JSON to hoppscotch recommended format which looks like this:
{
"base_url": "https:/reqres.in/api/"
}
and now I see this error:
Running: Sandbox/Single User
GET https:/reqres.in/api/users/2 ERROR
⚠ Error running request.
⚠ Error running test-script.
Sandbox/Single User reported errors:
REQUEST_ERROR unable to get local issuer certificate
TEST_SCRIPT_ERROR Script evaluation failed: [object Object]
Test Cases: 0 failed 0 passed
Test Suites: 0 failed 0 passed
Test Scripts: 1 failed 0 passed
Requests: 1 failed 0 passed
Pre-Request Scripts: 0 failed 1 passed
Exited with code 1%
Steps to reproduce
Environment
Production
Version
Self-hosted
@nids2307 commented on GitHub (Sep 8, 2023):
Any updates on this ticket?
@jamesgeorge007 commented on GitHub (Dec 22, 2023):
Hi, we recently added the support for supplying environments individually to the CLI. Please find more information here.
We don't support disabling TLS certificate validation currently. Also, can you check if it's something with the network?
@joeljstephen commented on GitHub (Apr 18, 2024):
@nids2307 I hope the suggestion helped. I will be closing this issue. If you are still facing this issue on the latest builds, please feel free to reopen this issue.