CypressError: `cy.request()` failed on:
http://elastic:changeme@localhost:6151/api/solutions/security/graphql
The response we received from your web server was:
> 400: Bad Request
This was considered a failure because the status code was not `2xx` or `3xx`.
If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`
-----------------------------------------------------------
The request we sent was:
Method: POST
URL: http://elastic:changeme@localhost:6151/api/solutions/security/graphql
Headers: {
"Connection": "keep-alive",
"kbn-xsrf": "delete-signals",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/87.0.4280.88 Safari/537.36",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"authorization": "Basic ZWxhc3RpYzpjaGFuZ2VtZQ==",
"content-type": "application/json",
"content-length": 157
}
Body: {"operationName":"DeleteTimelineMutation","variables":{"id":[null]},"query":"mutation DeleteTimelineMutation($id: [ID!]!) {\n deleteTimeline(id: $id)\n}\n"}
-----------------------------------------------------------
The response we got was:
Status: 400 - Bad Request
Headers: {
"content-type": "application/json; charset=utf-8",
"kbn-name": "kibana-ci-immutable-ubuntu-18-tests-xxl-1607634196457586066",
"kbn-license-sig": "11a88980626736dd699d8f9f75172106e6a26228aefff99ea2b4f132147816db",
"cache-control": "private, no-cache, no-store, must-revalidate",
"content-length": "213",
"date": "Thu, 10 Dec 2020 21:44:50 GMT",
"connection": "keep-alive",
"keep-alive": "timeout=120"
}
Body: {
"message": "{\"errors\":[{\"message\":\"Variable \\\"$id\\\" got invalid value [null]; Expected non-nullable type ID! not to be null at value[0].\",\"locations\":[{\"line\":1,\"column\":33}]}]}",
"status_code": 400
}
https://on.cypress.io/request
Because this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `Detection rules, override`
at http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:158924:21
at tryCatcher (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:10584:23)
at Promise._settlePromiseFromHandler (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:8519:31)
at Promise._settlePromise (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:8576:18)
at Promise._settlePromise0 (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:8621:10)
at Promise._settlePromises (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:8701:18)
at _drainQueueStep (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:5291:12)
at _drainQueue (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:5284:9)
at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:5300:5)
at Async.drainQueues (http://elastic:changeme@localhost:6151/__cypress/runner/cypress_runner.js:5170:14)
From Your Spec Code:
at Object.deleteTimeline (http://localhost:6151/__cypress/tests?p=cypress/integration/alerts_detection_rules_override.spec.ts:21507:8)
at Context.eval (http://localhost:6151/__cypress/tests?p=cypress/integration/alerts_detection_rules_override.spec.ts:20334:21)
A test failed on a tracked branch
First failure: Jenkins Build