[GH-ISSUE #3859] 解组 JSON 时出错:解码 JSON:json:无法将字符串解组为 v1.ClientConfig 类型的 Go 值 #3066

Closed
opened 2026-05-05 13:59:03 -06:00 by gitea-mirror · 7 comments
Owner

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配置文件内容如下
image

frpc Version

0.53.0

frps Version

0.53.0

System Architecture

windows/amd64

Configurations

image

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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配置文件内容如下 <img width="227" alt="image" src="https://github.com/fatedier/frp/assets/98369312/08d4550b-fa2f-41cb-9b1a-cbdfb3aef548"> ### frpc Version 0.53.0 ### frps Version 0.53.0 ### System Architecture windows/amd64 ### Configurations <img width="227" alt="image" src="https://github.com/fatedier/frp/assets/98369312/a550d655-63be-4023-b080-d67907f2e57b"> ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:59:03 -06:00
Author
Owner

@superzjg commented on GitHub (Dec 19, 2023):

注意键值对的格式,tcp示例:https://gofrp.org/zh-cn/docs/examples/ssh/

<!-- gh-comment-id:1861910363 --> @superzjg commented on GitHub (Dec 19, 2023): 注意键值对的格式,tcp示例:https://gofrp.org/zh-cn/docs/examples/ssh/
Author
Owner

@zhaobingxiang commented on GitHub (Dec 19, 2023):

解决了么,我这也是同样的问题

<!-- gh-comment-id:1863095165 --> @zhaobingxiang commented on GitHub (Dec 19, 2023): 解决了么,我这也是同样的问题
Author
Owner

@zhaobingxiang commented on GitHub (Dec 19, 2023):

arm环境,目前amd环境测试没啥问题,出问题的就是arm环境

<!-- gh-comment-id:1863096691 --> @zhaobingxiang commented on GitHub (Dec 19, 2023): arm环境,目前amd环境测试没啥问题,出问题的就是arm环境
Author
Owner

@maston2 commented on GitHub (Dec 23, 2023):

我也是,不知道是不是Toml格式才能行?两个中括号?

serverAddr = "x.x.x.x"
serverPort = 7000

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
<!-- gh-comment-id:1868252902 --> @maston2 commented on GitHub (Dec 23, 2023): 我也是,不知道是不是Toml格式才能行?两个中括号? ``` serverAddr = "x.x.x.x" serverPort = 7000 [[proxies]] name = "ssh" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ```
Author
Owner

@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.

<!-- gh-comment-id:1891246417 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:1928563819 --> @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.
Author
Owner

@huangluyu commented on GitHub (Mar 12, 2024):

Same problem happend in 0.53.2. My config works on other windows, but not works on special one.

我的问题是由于 windows 和 linux 的换行符不一致而导致的,windows 自带的记事本不容易发现这个问题,我使用其他文本编辑器才发现。

<!-- gh-comment-id:1990915761 --> @huangluyu commented on GitHub (Mar 12, 2024): > Same problem happend in 0.53.2. My config works on other windows, but not works on special one. 我的问题是由于 windows 和 linux 的换行符不一致而导致的,windows 自带的记事本不容易发现这个问题,我使用其他文本编辑器才发现。
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: github-starred/frp#3066
No description provided.