fix(sdk): failed to transform proxy port between sdk and renderer #1618
Annotations
10 errors
src/cli.test.ts > inso dev bundle > exit codes are consistent > exit code should be 0: %p $PWD/packages/insomnia-inso/bin/inso run collection -w packages/insomnia-inso/src/examples/after-response.yml wrk_616795 --verbose:
packages/insomnia-inso/src/cli.test.ts#L70
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/cli.test.ts:70:27
|
src/cli.test.ts > inso dev bundle > exit codes are consistent > exit code should be 0: %p $PWD/packages/insomnia-inso/bin/inso run collection -w packages/insomnia-inso/src/examples/three-requests.yml -i req_3fd28aabbb18447abab1f45e6ee4bdc1 -i req_6063adcdab5b409e9b4f00f47322df4a:
packages/insomnia-inso/src/cli.test.ts#L70
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/cli.test.ts:70:27
|
src/cli.test.ts > inso dev bundle > exit codes are consistent > exit code should be 0: %p $PWD/packages/insomnia-inso/bin/inso run collection -w packages/insomnia-inso/src/examples/set-next-request.yml wrk_cbc89e:
packages/insomnia-inso/src/cli.test.ts#L70
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/cli.test.ts:70:27
|
src/cli.test.ts > inso dev bundle > exit codes are consistent > exit code should be 0: %p $PWD/packages/insomnia-inso/bin/inso run collection -w packages/insomnia-inso/src/examples/with-missing-env-vars.yml -i req_3fd28aabbb18447abab1f45e6ee4bdc1 --env-var firstkey=first --env-var secondkey=second:
packages/insomnia-inso/src/cli.test.ts#L70
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/cli.test.ts:70:27
|
src/cli.test.ts > inso dev bundle > exit codes are consistent > exit code should be 0: %p $PWD/packages/insomnia-inso/bin/inso run collection -w packages/insomnia-inso/src/examples/with-missing-env-vars.yml -i req_3fd28aabbb18447abab1f45e6ee4bdc1 --globals packages/insomnia-inso/src/examples/global-environment.yml:
packages/insomnia-inso/src/cli.test.ts#L70
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ src/cli.test.ts:70:27
|
src/cli.test.ts > inso dev bundle > response and timeline has scripting effects > console log appears in timeline:
packages/insomnia-inso/src/cli.test.ts#L87
AssertionError: expected '› Data store configured from Insomnia…' to contain 'HTTP/1.1 200 OK'
- Expected
+ Received
- HTTP/1.1 200 OK
+ › Data store configured from Insomnia export at /home/runner/work/insomnia/insomnia/packages/insomnia-inso/src/examples/minimal.yml
+ › Load workspace with identifier wrk_5b5ab6 from data store
+ › Found 1.
+ › Load base environment for the workspace wrk_5b5ab67830944ffcbec47528366ef403 from data store
+ › Found 1.
+ › No sub environments found, using base environment
+ Running request: with pre request script req_178f98ccc6b240f5a1f67c492b6bf9a6
+ [network] Error Error: The protocol is missing:
+ at transformToSdkProxyOptions (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:599454:11)
+ at initInsomniaObject (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:600755:17)
+ at runScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616750:34)
+ at cancellableRunScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616871:94)
+ at tryToExecuteScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617238:34)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async tryToExecutePreRequestScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617126:26)
+ at async sendRequest2 (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617691:28)
+ at async _Command.<anonymous> (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:618978:23)
+ at async _Command.parseAsync (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:1895:9)
+ [network] Response succeeded req=req_178f98ccc6b240f5a1f67c492b6bf9a6 status=200
+ [network] Response succeeded req=req_178f98ccc6b240f5a1f67c492b6bf9a6 status=200
+ ℹ To view tracing information, re-run inso with --verbose
+
❯ src/cli.test.ts:87:29
|
src/cli.test.ts > inso dev bundle > response and timeline has scripting effects > insomnia.request.addHeader works:
packages/insomnia-inso/src/cli.test.ts#L98
AssertionError: expected '› Data store configured from Insomnia…' to contain 'HTTP/1.1 200 OK'
- Expected
+ Received
- HTTP/1.1 200 OK
+ › Data store configured from Insomnia export at /home/runner/work/insomnia/insomnia/packages/insomnia-inso/src/examples/script-add-header.yml
+ › Load workspace with identifier wrk_5b5ab6 from data store
+ › Found 1.
+ › Load base environment for the workspace wrk_5b5ab67830944ffcbec47528366ef403 from data store
+ › Found 1.
+ › No sub environments found, using base environment
+ Running request: custom header by pre request script req_178f98ccc6b240f5a1f67c492b6bf9a6
+ [network] Error Error: The protocol is missing:
+ at transformToSdkProxyOptions (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:599454:11)
+ at initInsomniaObject (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:600755:17)
+ at runScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616750:34)
+ at cancellableRunScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616871:94)
+ at tryToExecuteScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617238:34)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async tryToExecutePreRequestScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617126:26)
+ at async sendRequest2 (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617691:28)
+ at async _Command.<anonymous> (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:618978:23)
+ at async _Command.parseAsync (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:1895:9)
+ [network] Response succeeded req=req_178f98ccc6b240f5a1f67c492b6bf9a6 status=200
+ [network] Response succeeded req=req_178f98ccc6b240f5a1f67c492b6bf9a6 status=200
+ ℹ To view tracing information, re-run inso with --verbose
+
❯ src/cli.test.ts:98:29
|
src/cli.test.ts > inso dev bundle > response and timeline has scripting effects > require("insomnia-collection") works:
packages/insomnia-inso/src/cli.test.ts#L109
AssertionError: expected '› Data store configured from Insomnia…' to contain 'X-Hello: hello'
- Expected
+ Received
- X-Hello: hello
+ › Data store configured from Insomnia export at /home/runner/work/insomnia/insomnia/packages/insomnia-inso/src/examples/script-require.yml
+ › Load workspace with identifier wrk_5b5ab6 from data store
+ › Found 1.
+ › Load base environment for the workspace wrk_5b5ab67830944ffcbec47528366ef403 from data store
+ › Found 1.
+ › No sub environments found, using base environment
+ Running request: insomnia.request manipulation req_89dade2ee9ee42fbb22d588783a9df03
+ [network] Error Error: The protocol is missing:
+ at transformToSdkProxyOptions (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:599454:11)
+ at initInsomniaObject (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:600755:17)
+ at runScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616750:34)
+ at cancellableRunScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616871:94)
+ at tryToExecuteScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617238:34)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async tryToExecutePreRequestScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617126:26)
+ at async sendRequest2 (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617691:28)
+ at async _Command.<anonymous> (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:618978:23)
+ at async _Command.parseAsync (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:1895:9)
+ [network] Response succeeded req=req_89dade2ee9ee42fbb22d588783a9df03 status=200
+ [network] Response succeeded req=req_89dade2ee9ee42fbb22d588783a9df03 status=200
+ ℹ To view tracing information, re-run inso with --verbose
+
❯ src/cli.test.ts:109:29
|
src/cli.test.ts > inso dev bundle > response and timeline has scripting effects > insomnia.sendRequest works:
packages/insomnia-inso/src/cli.test.ts#L119
AssertionError: expected '› Data store configured from Insomnia…' to contain 'log: "we did it: 200"'
- Expected
+ Received
- log: "we did it: 200"
+ › Data store configured from Insomnia export at /home/runner/work/insomnia/insomnia/packages/insomnia-inso/src/examples/script-send-request.yml
+ › Load workspace with identifier wrk_cfacae from data store
+ › Found 1.
+ › Load base environment for the workspace wrk_cfacae2b022e49c8851c2376674cc890 from data store
+ › Found 1.
+ › No sub environments found, using base environment
+ Running request: sendRequest req_51dfc16d0f324a799e46aad52ffd0cd2
+ [network] Error Error: The protocol is missing:
+ at transformToSdkProxyOptions (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:599454:11)
+ at initInsomniaObject (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:600755:17)
+ at runScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616750:34)
+ at cancellableRunScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616871:94)
+ at tryToExecuteScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617238:34)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async tryToExecutePreRequestScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617126:26)
+ at async sendRequest2 (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617691:28)
+ at async _Command.<anonymous> (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:618978:23)
+ at async _Command.parseAsync (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:1895:9)
+ [network] Response succeeded req=req_51dfc16d0f324a799e46aad52ffd0cd2 status=200
+ [network] Response succeeded req=req_51dfc16d0f324a799e46aad52ffd0cd2 status=200
+ ℹ To view tracing information, re-run inso with --verbose
+
❯ src/cli.test.ts:119:29
|
src/cli.test.ts > inso dev bundle > response and timeline has scripting effects > iterationData and iterationCount args work:
packages/insomnia-inso/src/cli.test.ts#L128
AssertionError: expected '› Data store configured from Insomnia…' to contain 'expecting to see:file_value0'
- Expected
+ Received
- expecting to see:file_value0
+ › Data store configured from Insomnia export at /home/runner/work/insomnia/insomnia/packages/insomnia-inso/src/examples/three-requests.yml
+ › Load workspace with identifier wrk_c992d40ce76f4a3cb44c5fdb8435cbeb from data store
+ › Found 1.
+ › Load sub environment with identifier env_86e135 from data store
+ Running request: 1 req_3fd28aabbb18447abab1f45e6ee4bdc1
+ [network] Response succeeded req=req_3fd28aabbb18447abab1f45e6ee4bdc1 status=200
+ [network] Error Error: The protocol is missing:
+ at transformToSdkProxyOptions (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:599454:11)
+ at initInsomniaObject (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:600755:17)
+ at runScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616750:34)
+ at cancellableRunScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:616871:94)
+ at tryToExecuteScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617238:34)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async tryToExecuteAfterResponseScript (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617371:30)
+ at async sendRequest2 (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:617716:32)
+ at async _Command.<anonymous> (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:618978:23)
+ at async _Command.parseAsync (/home/runner/work/insomnia/insomnia/packages/insomnia-inso/dist/index.js:1895:9)
+ [network] Response succeeded req=req_3fd28aabbb18447abab1f45e6ee4bdc1 status=200
+ ℹ To view tracing information, re-run inso with --verbose
+
❯ src/cli.test.ts:128:29
|