mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3859] 解组 JSON 时出错:解码 JSON:json:无法将字符串解组为 v1.ClientConfig 类型的 Go 值 #3066
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3066
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 @stubborn-fk on GitHub (Dec 18, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3859
Bug Description
win11 windows frpc客户端运行frpc.exe指定配置文件后报错:E:\brouser_download\frp_0.53.0_windows_amd64>frpc.exe -c frpc.toml

error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.ClientConfig
toml配置文件内容如下
frpc Version
0.53.0
frps Version
0.53.0
System Architecture
windows/amd64
Configurations
Logs
No response
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Dec 19, 2023):
注意键值对的格式,tcp示例:https://gofrp.org/zh-cn/docs/examples/ssh/
@zhaobingxiang commented on GitHub (Dec 19, 2023):
解决了么,我这也是同样的问题
@zhaobingxiang commented on GitHub (Dec 19, 2023):
arm环境,目前amd环境测试没啥问题,出问题的就是arm环境
@maston2 commented on GitHub (Dec 23, 2023):
我也是,不知道是不是Toml格式才能行?两个中括号?
@huangluyu commented on GitHub (Jan 15, 2024):
Same problem happend in 0.53.2. My config works on other windows, but not works on special one.
@github-actions[bot] commented on GitHub (Feb 6, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@huangluyu commented on GitHub (Mar 12, 2024):
我的问题是由于 windows 和 linux 的换行符不一致而导致的,windows 自带的记事本不容易发现这个问题,我使用其他文本编辑器才发现。