siyuan-note / insider

SiYuan Insider Preview
https://b3log.org/siyuan
67 stars 2 forks source link

桌面端内核在授权页自动退出 #1099

Closed Zuoqiu-Yingyi closed 2 years ago

Zuoqiu-Yingyi commented 2 years ago
check-auth:465          POST http://127.0.0.1:54499/api/system/loginAuth net::ERR_CONNECTION_REFUSED
submitAuth @ check-auth:465
onclick @ check-auth:154
check-auth:465

Uncaught (in promise) TypeError: Failed to fetch
    at submitAuth (check-auth:465:5)
    at HTMLButtonElement.onclick (check-auth:154:54)
submitAuth @ check-auth:465
onclick @ check-auth:154
Promise.then (async)
submitAuth @ check-auth:473
onclick @ check-auth:154
88250 commented 2 years ago

这个是因为目前桌面端内核 30s 没有 ws 连接的话会自动退出进程,改进方案是授权页也建立 ws 连接 @Vanessa219