Open Bishares opened 2 years ago
The login does not work properly. The server returns a 500. Server is set to CORS_ORIGIN_ALLOW_ALL = True.
Also FRONTEND_URL=localhost:8080
is set in the server .env
file.
This is the detailed error:
Method: POST
URL: http://localhost:8000/auth/login/
Headers: {
"Connection": "keep-alive",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/10.8.0 Chrome/102.0.5005.148 Electron/19.0.8 Safari/537.36",
"accept": "*/*",
"accept-encoding": "gzip, deflate",
"content-type": "application/json",
"content-length": 57
}
Body: {"email":"cypress@uni-ulm.de","password":"testingIsFun1"}
-----------------------------------------------------------
The response we got was:
Status: 500 - Internal Server Error
Headers: {
"date": "Mon, 10 Oct 2022 14:28:26 GMT",
"server": "WSGIServer/0.2 CPython/3.9.14",
"content-type": "text/html",
"vary": "Origin",
"x-frame-options": "DENY",
"content-length": "211904",
"x-content-type-options": "nosniff",
"referrer-policy": "same-origin"
}
Body: <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
<title>OperationalError
at /auth/login/</title>
<style type="text/css">
html * { padding:0; margin:0; }
body * { padding:10px 20px; }
body * * { padding:0; }
body { font:small sans-serif; background-color:#fff; color:#000; }
body>div { border-bottom:1px solid #ddd; }
h1 { font-weight:normal; }
h2 { margin-bottom:.8em; }
h3 { margin:1em 0 .5em 0; }
h4 { margin:0 0 .5em 0; font-weight: normal; }
code, pre { font-size: 100%; white-space: pre-wrap; }
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
thead th {
padding:1px 6px 1px 3px; background:#fefefe; text-align:left;
font-weight:normal; font-size:11px; border:1px solid #ddd;
}
tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
table.vars { margin:5px 0 2px 40px; }
table.vars td, table.req td { font-family:monospace; }
table td.code { width:100%; }
table td.code pre { overflow:hidden; }
table.source th { color:#666; }
table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
ul.traceback { list-style-type:none; color: #222; }
ul.traceback li.frame { padding-bottom:1em; color:#4f4f4f; }
ul.traceback li.user { background-color:#e0e0e0; color:#000 }
div.context { padding:10px 0; overflow:hidden; }
div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; }
div.context ol li pre { display:inline; }
div.context ol.context-line li { color:#[464](https://github.com/h3ssto/ddueruem-web/actions/runs/3220075434/jobs/5266306018#step:12:465)646; background-color:#dfdfdf; padding: 3px 2px; }
div.context ol.context-line li span { position:a...
I was able to reproduce the faulty behavior locally:
Follow the guide, to reproduce this: https://github.com/h3ssto/ddueruem-web/wiki/Guide:-Replicating-the-github-actions-locally-for-debugging
Disabled the pipeline for now. Will be a milestone after v0.1.
the
cypress.yml
in the github actions is not working properly