Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

httpyac not recognizing http-client.env.json files on WSL

See original GitHub issue

I’ve run into an issue that only seems to happen on Windows Subsystem for Linux (WSL). Which is quite irritating and I’m hoping you could end my frustration 😃

I have a project set up where I have my project set up as follows:

├── Asserts
│   ├── Should_be_200_OK.js
│   └── Should_be_201.js
├── http-client.env.json
├── .httpyac.json
├── Integration.Tests.csproj
└── Tests
    └── post-tests.http

When I run the command the command below on Linux or Mac it works as expected and is great

httpyac ./tests/Integration.Tests/Tests/* --all -e dev --json or httpyac ./tests/Integration.Tests/Tests/* --all -e dev -o short

However, when it comes to Windows and even though I am using Windows Subsystem for Linux (ubuntu) the command fails

ReferenceError: host is not defined which seems to indicate HttpYac can’t find the http-client.env.json where all environment variables have been defined.

This only seems to happen on WSL though!

Feel free to check out the sample project

The really annoying things is when I run the tests in Rider on Windows they work as expected! So I know the tests work. and if I run the tests on any other OS using the HttpYac they work. It’s only Windows that is the issue.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

garywoodfinecommented, May 15, 2022

I’ll try the debugging option on Monday, try get as much information as I can.

AnWebercommented, May 16, 2022

@garywoodfine Thank you. You are welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

httpyac.json file not overriding hard coded defaults · Issue #3
I added a file called .httpyac.json and set the commandline --root parameter to the folder the file was in. ... I expected the...
Read more >
Exploring the HTTP request syntax | IntelliJ IDEA Documentation
If you use Git in IDEA, the http-client.private.env.json file is not tracked by Git. However, it is not added to the .gitignore file....
Read more >
httpyac CLI
httpyac CLI provides a command line interface to execute *.http and *.rest files. This can be used to quickly execute a single *.http...
Read more >
Better HTTP Request Management with httpyac
httpyac uses .http or .rest files to specify requests. An example .http for ... By default, httpyac supports dotenv variable configuration.
Read more >
22.xml - jsDelivr
... monthly monthly ... monthly ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found