Open xeras opened 3 years ago
I'm encountering the same error using macOS big sur. I've made the same steps as @xeras.
Hi @mdhenriksen, the request being run by the test, is that by any chance consuming a plugin or template tag? If that's the case, unfortunately plugins are not yet supported with Inso, though we do plan to allow this - I suggest following this thread.
It would be incredibly useful for us if you are able to provide a document export that we can validate with!
Hey @develohpanda! The request is using an environment variable tag (I guess thats a template tag).
However, I've just created a completely new test, that only sends a GET
request without any parameters, tags or what so ever - and I'm still hitting the same error.
My steps are as follows:
GET
request pointed at https://api.chucknorris.io/jokes/random200
inso run test
and find and run the test suiteThank you for those steps! Environment variables should be supported just fine, it's more if there are any custom plugins. I followed your steps above and it seems to be working as intended.
Could you please confirm which version of Insomnia and Inso you are using? Are they both the current latest versions?
Weird it works for you.
I have a few plugins installed, but that's fine as long at they are not used in the actual requests and tests, right?
These are my versions:
Full specifications on my Insomnia installation:
Version: Insomnia 2021.5.2
Release date: 31/08/2021
OS: Darwin x64 20.6.0
Electron: 11.2.3
Node: 12.18.3
V8: 8.7.220.31-electron.0
Architecture: x64
node-libcurl: libcurl/7.73.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.1.1 libssh2/1.9.0 nghttp2/1.42.0
I have a few plugins installed, but that's fine as long at they are not used in the actual requests and tests, right?
In theory yes, there might be a situation where an environment variable that uses a template tag/plugin could cause an issue. But you're able to reproduce this with a brand new design document (right?), so environment variables won't play a part.
(I also mistakenly thought Inso 2.3.0 was the latest, however I get the same success response using Inso 2.3.2.)
I had the same problem with all node v16 versions, but it worked with v14
nvm install v14.18.1
Now using node v14.18.1 (npm v6.14.15)
npm install -g insomnia-inso
inso run test
Oh that's a good point^. Inso only works (currently) with Node 12. We've released single-executable binaries which you can access from GitHub Releases if you want to skip installing via NPM.
Describe the bug Running tests with inso cli
inso run test
results into an error.To Reproduce Steps to reproduce the behavior:
Expected behavior Inso CLI runs the tests as expected without throwing errors.
Desktop (please complete the following information):