Closed redbugz closed 1 year ago
@redbugz are you seeing this error on the client side or on sorry-cypress backend?
ERROR Invalid value "undefined" for header "x-cypress-run-id"
On the client side:
$ npx cypress-cloud run --parallel --ci-build-id=hello-cy-cloud-1
====================================================================================================
Discovered 15 spec files
Tags: ; Group: false; Parallel: true; Batch Size: 3
Connecting to cloud orchestration service...
ERROR Invalid value "undefined" for header "x-cypress-run-id"
When I run with debug logs I see this:
follow-redirects options {
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: 'https:',
path: '/runs',
method: 'POST',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
'x-cypress-request-attempt': 0,
'x-cypress-run-id': undefined,
'x-cypress-version': '12.8.1',
'x-ccy-version': '1.5.5',
'User-Agent': 'axios/0.27.2',
'Content-Length': 2245
},
I don't see any backend logs showing any request made it to the sorry-cypress-director backend
@redbugz released in 1.5.6
Before opening, please confirm:
Environment information
Describe the bug
ERROR Invalid value "undefined" for header "x-cypress-run-id"
I'm not that familiar with the code, but from poking around a bit, it appears that
run.runId
isn't set until aftercreateRun
is called, butcreateRun
needs x-cypress-run-id to be set first? So chicken-egg problem?Expected behavior
Tests to run against our sorry-cypress instance
Command and Setup
DEBUG=currents:*,cypress:* npx cypress-cloud run --ci-build-id hello-cy-cloud-1
self-hosted sorry-cypress 2.4.0
Full log and debug output