Skip to content

TypeError [ERR_INVALID_THIS]: Value of "this" must be of type nullish or must be the global object #437

Closed
@simsurace

Description

I get this TypeError when running a simple GET request

$ httpyac send -a test.http
TypeError [ERR_INVALID_THIS]: Value of "this" must be of type nullish or must be the global object
    at new NodeError (node:internal/errors:399:5)
    at global.cryptoThisCheck (node:internal/process/pre_execution:286:17)
    at get crypto [as crypto] (node:internal/util:617:9)
    at sm (~/.npm-global/lib/node_modules/httpyac/dist/index.js:6:2490)
    at Gt (~/.npm-global/lib/node_modules/httpyac/dist/index.js:6:2268)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async xt (~/.npm-global/lib/node_modules/httpyac/dist/index.js:6:5619)
    at async p.trigger (~/.npm-global/lib/node_modules/httpyac/node_modules/hookpoint/dist/index.js:1:3212)
    at async Se.execute (~/.npm-global/lib/node_modules/httpyac/dist/index.js:2:49383)
    at async zd (~/.npm-global/lib/node_modules/httpyac/dist/index.js:119:29673) {
  code: 'ERR_INVALID_THIS'
}

---------------------
GET http://localhost:7777/healthz/live
accept: */*
accept-encoding: gzip, deflate, br
user-agent: httpyac

HTTP/1.1 200  - OK
transfer-encoding: chunked

Service is live
✓ status code Ok

where test.http reads

GET http://localhost:7777/healthz/live
{{
  const { equal } = require('assert');
  test('status code Ok', () => {
    equal(response.statusCode, 200);
  });
}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions