mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3657] error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.ServerConfig #2914
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#2914
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 @alsingh1 on GitHub (Oct 10, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3657
Bug Description
Getting JSON unmarshaling error with default toml config file
frpc Version
0.52.0
frps Version
0.52.0
System Architecture
linux/amd64
Configurations
Logs
No response
Steps to reproduce
./frps -c frps.toml
error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.ServerConfig
...
Affected area
@FutureBoundYu commented on GitHub (Oct 10, 2023):
same error, version: 0.52.0
@ShiinaRinne commented on GitHub (Oct 10, 2023):
307d1bfa3fIt has been fixed but has not been updated to the release yet.
Currently, you can modify the config file in
frps.tomllike this commit@0x1af2aec8f957 commented on GitHub (Oct 16, 2023):
这个问题仍然存在
@plmcoder commented on GitHub (Oct 25, 2023):
same error on version
0.52.3env
win10@ShiinaRinne commented on GitHub (Oct 25, 2023):
The latest version should be fine, even the default configuration has been almost completely removed in this commit
a6478aeac8and moved to anotherfull_example.tomlIf there are still issues, please send the configuration file @plmcoder @0x1af2aec8f957
@plmcoder commented on GitHub (Oct 25, 2023):
my config as follows and still not work, may be we should add an option
--config-formatto specify config file format, and then tell us the detail error for the config file while verify like this:frps.exe verify -c frps.toml --config-format toml@ShiinaRinne commented on GitHub (Oct 26, 2023):
Your configuration has been tested and is also working correctly, can you take a screenshot?
Or remove any sensitive information, and send the entire FRP folder directly
@0x1af2aec8f957 commented on GitHub (Oct 30, 2023):
@ShiinaRinne My local configuration does not have this issue on version
0.52.3.@jy02326387 commented on GitHub (Nov 4, 2023):
同样出现问题,windows 2018 v0.52.3
@lekai63 commented on GitHub (Nov 6, 2023):
toml不行,手动转换为json后。 用
frpc.exe -c frpc.json可行@GiserLGQ commented on GitHub (Nov 13, 2023):
一样,版本0.52.3,win10
@xwzbupt commented on GitHub (Nov 14, 2023):
same error.
My env is docker, the version is
0.52.0, and then I upgrated it to0.52.3. Both of them didn't work. I wonder how to handle it.@RyougiShiki-214 commented on GitHub (Nov 14, 2023):
同样错误。环境是Ubuntu22.04LTS,只能手动改成json使用
@winfordguo commented on GitHub (Nov 15, 2023):
value的值如果是字符串用""包起来试试看。
比如:
@RyougiShiki-214 commented on GitHub (Nov 15, 2023):
果然是这个问题,非常感谢!
@HivenZhu commented on GitHub (Nov 24, 2023):
Met the same error. Solved it with check the configuration file step by stop and correct the wrong item, then it worked.
@aklivecai commented on GitHub (Dec 22, 2023):
Toml在线编辑(校验)器, 字段重复也会报错,可以在线校验以下
@hullhut commented on GitHub (Jan 9, 2024):
原因应该在于字符串需要加上双引号
@github-actions[bot] commented on GitHub (Jan 31, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
@alsingh1 commented on GitHub (Jan 31, 2024):
Issue resolved as per suggestion
@Estwind07 commented on GitHub (Feb 2, 2024):
非常感谢
@qq1986114 commented on GitHub (Sep 12, 2024):
我用这样子
serverAddr = "0.0.0.0"
serverPort = 7000
token = xxxx
怎么改都不行,最后按你的格式来就行了,大大的服!!
auth.method = "token"
auth.token = “xxxx ”