CypressError: `cy.request()` failed on:
http://localhost:5004/admin/login/
The response we received from your web server was:
> 500: Internal Server Error
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://localhost:5004/admin/login/
Headers: {
"Connection": "keep-alive",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/9.6.1 Chrome/94.0.4606.81 Electron/15.5.1 Safari/537.36",
"accept": "*/*",
"cookie": "csrftoken=blYCq31cEW5FhqpfSoDsV8nQwqSe9nfpTfK9MscSa5eqx8a02EZ77so5V58VBuGf",
"content-type": "application/x-www-form-urlencoded",
"accept-encoding": "gzip, deflate",
"content-length": 112
}
Body: username=user&password=user&csrfmiddlewaretoken=blYCq31cEW5FhqpfSoDsV8nQwqSe9nfpTfK9MscSa5eqx8a02EZ77so5V58VBuGf
-----------------------------------------------------------
The response we got was:
Status: 500 - Internal Server Error
Headers: {
"date": "Wed, 25 May 2022 14:28:37 GMT",
"server": "WSGIServer/0.2 CPython/3.7.3",
"content-type": "text/html; charset=utf-8",
"x-frame-options": "SAMEORIGIN",
"content-length": "4873",
"vary": "Cookie, Accept-Encoding",
"content-encoding": "gzip"
}
Body:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Error 500 – Software Heritage archive </title>
<link href="/static/css/vendors.d076a990639a04a5ab8d.css" rel="stylesheet" />
<script src="/static/js/vendors.446b57e2a5b74ab5d31b.js" ></script>
<link href="/static/css/webapp.21c9ee56f15e3caa4234.css" rel="stylesheet" />
<script src="/static/js/webapp.023c9b9123a8ea89da02.js" ></script>
<link href="/static/css/guided_tour.270a16dbeb1a0fabd2fa.css" rel="stylesheet" />
<script src="/static/js/guided_tour.711a1c73fe7969b0db63.js" ></script>
<script>
/*
@licstart The following is the entire license notice for the JavaScript code in this page.
Copyright (C) 2015-2022 The Software Heritage developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
@licend The above is the entire license notice for the JavaScript code in this page.
*/
</script>
<script>
SWH_CONFIG = {};
swh.webapp.sentryInit(SWH_CONFIG.sentry_dsn);
</script>
<script src="/jsreverse/" type="text/javascript"></script>
<script>
swh.webapp.setSwhObjectIcons({"alias": "mdi mdi-star", "branch": "mdi mdi-source-branch", "branches": "mdi mdi-source-branch", "content": "mdi mdi-file-docu...
https://on.cypress.io/request
Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Test add forge now request ...`
Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
at http://localhost:5004/__cypress/runner/cypress_runner.js:165424:80
at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:13022:23)
at Promise._settlePromiseFromHandler (http://localhost:5004/__cypress/runner/cypress_runner.js:10957:31)
at Promise._settlePromise (http://localhost:5004/__cypress/runner/cypress_runner.js:11014:18)
at Promise._settlePromise0 (http://localhost:5004/__cypress/runner/cypress_runner.js:11059:10)
at Promise._settlePromises (http://localhost:5004/__cypress/runner/cypress_runner.js:11139:18)
at _drainQueueStep (http://localhost:5004/__cypress/runner/cypress_runner.js:7729:12)
at _drainQueue (http://localhost:5004/__cypress/runner/cypress_runner.js:7722:9)
at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://localhost:5004/__cypress/runner/cypress_runner.js:7738:5)
at Async.drainQueues (http://localhost:5004/__cypress/runner/cypress_runner.js:7608:14)
From Your Spec Code:
at Context.eval (http://localhost:5004/__cypress/tests?p=cypress/support/index.js:130:10)
TEST RESULT
TEST RESULT
- Run At
- May 25 2022, 4:46 PM