Я просто пытаюсь использовать zoomeye API в течение дня или двух, но не могу пройти проверку подлинности. Я выполняю следующие действия: c:
Он работал нормально один или 2 месяца go.
Вот что я получаю с помощью Curl:
# curl -v -XPOST https://api.zoomeye.org/user/login -d '{"username": "mail@mymail.com", "password": "xxxxxx"}'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 203.90.247.69:443...
* TCP_NODELAY set
* Connected to api.zoomeye.org (203.90.247.69) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: OU=Domain Control Validated; OU=PositiveSSL; CN=api.zoomeye.org
* start date: Nov 2 00:00:00 2018 GMT
* expire date: Nov 1 23:59:59 2020 GMT
* subjectAltName: host "api.zoomeye.org" matched cert's "api.zoomeye.org"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
> POST /user/login HTTP/1.1
> Host: api.zoomeye.org
> User-Agent: curl/7.67.0
> Accept: */*
> Content-Length: 62
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 62 out of 62 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 504 Gateway Time-out
< Date: Tue, 07 Jan 2020 16:42:29 GMT
< Content-Type: text/html
< Content-Length: 176
< Connection: keep-alive
< X-CDN-Edge: aca7543,-
< Set-Cookie: __cdnuid_s=e07bbbff45b09aa6d14b992c8eb75b5b; max-age=31536000; path=/; HttpOnly; secure
< X-Cache: bypass
<
<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host api.zoomeye.org left intact
У меня здесь тайм-аут 504, поэтому я думаю, что это проблема аутентификации, но в этом трудно убедиться.
У вас такая же проблема?
Приветствия,
Steackfrite