[GH-ISSUE #4105] 保存 SettingSync 提示“token invalid” #2838

Closed
opened 2026-02-27 00:54:26 +03:00 by kerem · 4 comments
Owner

Originally created by @atlantis414 on GitHub (Nov 9, 2025).
Original GitHub issue: https://github.com/electerm/electerm/issues/4105

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-2.3.85-win-x64-portable.tar.gz

Platform detail (平台详情)

win11 x64

What steps will reproduce the bug?(重现问题的详细步骤)

设置-设置同步-custom-填写APIURL, JWT Secret, UserID

点击保存, 提示 “token invalid”

What should have happened?(期望的结果)

保存成功

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @atlantis414 on GitHub (Nov 9, 2025). Original GitHub issue: https://github.com/electerm/electerm/issues/4105 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-2.3.85-win-x64-portable.tar.gz ### Platform detail (平台详情) win11 x64 ### What steps will reproduce the bug?(重现问题的详细步骤) 设置-设置同步-custom-填写APIURL, JWT Secret, UserID 点击保存, 提示 “token invalid” ### What should have happened?(期望的结果) 保存成功 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:54:27 +03:00
Author
Owner

@atlantis414 commented on GitHub (Nov 9, 2025):

服务端程序已启动,网络通

<!-- gh-comment-id:3507507678 --> @atlantis414 commented on GitHub (Nov 9, 2025): 服务端程序已启动,网络通
Author
Owner

@zxdong262 commented on GitHub (Nov 9, 2025):

看看是不是复制了多余的空格什么的,注意url一定是类似 https://xxxx.xxxx/api/sync 这样格式的

<!-- gh-comment-id:3508243924 --> @zxdong262 commented on GitHub (Nov 9, 2025): 看看是不是复制了多余的空格什么的,注意url一定是类似 https://xxxx.xxxx/api/sync 这样格式的
Author
Owner

@atlantis414 commented on GitHub (Nov 10, 2025):

看看是不是复制了多余的空格什么的,注意url一定是类似 https://xxxx.xxxx/api/sync 这样格式的

Image 检查了字符串没有多余空格 局域网用的是HTTP, 非HTTPS。换成 https://192.168.2.51:7837/api/sync 也是一样错误提示
<!-- gh-comment-id:3509383564 --> @atlantis414 commented on GitHub (Nov 10, 2025): > 看看是不是复制了多余的空格什么的,注意url一定是类似 https://xxxx.xxxx/api/sync 这样格式的 <img width="3012" height="1262" alt="Image" src="https://github.com/user-attachments/assets/04bcdb49-38d2-4acf-93c8-154a0ed046ef" /> 检查了字符串没有多余空格 局域网用的是HTTP, 非HTTPS。换成 https://192.168.2.51:7837/api/sync 也是一样错误提示
Author
Owner

@zxdong262 commented on GitHub (Nov 10, 2025):

确实有问题,更新了代码,git pull一下,注意jwt secret可能有某些字符会导致问题

<!-- gh-comment-id:3510403849 --> @zxdong262 commented on GitHub (Nov 10, 2025): 确实有问题,更新了代码,git pull一下,注意jwt secret可能有某些字符会导致问题
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2838
No description provided.