mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 01:05:52 +03:00
[GH-ISSUE #1271] crypto - code: 40401- request timeout #701
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#701
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @firengate on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1271
Hello!
After upgrading to the new version and waiting for nginx-ui to automatically deauthorize the session after it times out, attempting to log in again results in a "Request timeout" error.
curl 'http://192.168.110.124:9000/api/crypto/public_key'
-H 'Accept: /'
-H 'Accept-Language: en-US;q=0.8,en;q=0.7'
-H 'Connection: keep-alive'
-H 'Content-Type: application/json'
-H 'Cookie: token='
-H 'DNT: 1'
-H 'Origin: http://192.168.110.124:9000'
-H 'Referer: http://192.168.110.124:9000/'
-H 'Sec-GPC: 1'
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36'
--data-raw '{"timestamp":1753705061,"fingerprint":"3fce14bbcb918b815f9b7d8c4172c536"}'
--insecure
Nginx UI Response
{"scope":"crypto","code":40401,"message":"request timeout"}
I tried installing an older version (2.1.4), and the authorization works fine there.
@0xJacky commented on GitHub (Jul 28, 2025):
Please calibrate the time of the server and the browser.
@kaijia323 commented on GitHub (Jul 28, 2025):
{“timestamp”:1753705061,“fingerprint”:“3fce14bbcb918b815f9b7d8c4172c536”}
这个时间戳是错误的,应该获取的是毫秒,我通过替换js的内容,换成毫秒就可以成功
This timestamp is incorrect. It should be in milliseconds. I can make it work by replacing the content of the JavaScript to get the milliseconds.