API Call - timeout retrieving token
Closed this issue · 2 comments
tovoro commented
Im running v5.0.4 in Docker on a Debian 11 VM, everything seems to work but when I try to use the API to get a token, i run in a timeout. In Swagger, the "loading" screen just stays forever wheres with curl, I get a 504.
root@xxx:/opt/ansibleforms/ansibleforms-docker/# **curl -X 'POST' 'https://xxxx/api/v1/auth/login?expiryDays=10' -H 'accept: application/json' -d '' -vvv**
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying xxx:443...
* Connected to xxx.xx.xx (xxxx) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=*.xxx.xx
* start date: Jun 4 12:50:00 2024 GMT
* expire date: Jun 4 12:50:00 2025 GMT
* subjectAltName: host "xx.xx.ch" matched cert's "*.xx.xx"
* issuer: C=CH; O=xxx AG; CN=xx RSA TLS DV ICA xx - 1
* SSL certificate verify ok.
> POST /api/v1/auth/login?expiryDays=10 HTTP/1.1
> Host: xxxx
> User-Agent: curl/7.74.0
> accept: application/json
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 504 Gateway Time-out
< Server: openresty
< Date: Tue, 10 Sep 2024 08:07:31 GMT
< Content-Type: text/html
< Content-Length: 164
< Connection: keep-alive
<
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>openresty</center>
</body>
</html>
* Connection #0 to host xxxx left intact
tovoro commented
Thank you, I just noticed now that a lot of the documentation is in the discussion section of this repo. Thanks!