mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4860] unknown field "token" in frpc configuration #3835
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#3835
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 @DL909 on GitHub (Jul 1, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4860
Bug Description
frpc cannot recognize token field in
frpc.tomlI've installed frpc via brew using
brew install frpcand configured it.when I run
I got
I've downloaded the latest version of frpc via github and got the same result.
frpc Version
0.62.1
frps Version
0.63.0
System Architecture
macOS/arm64
Configurations
serverAddr = "0.0.0.0"
serverPort = 7000
token = "********"
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 7001
Logs
json: unknown field "token"
Steps to reproduce
brew install frpc)Affected area
@devin-ai-integration[bot] commented on GitHub (Jul 1, 2025):
Root Cause Analysis
Hi @DL909! I've analyzed your issue and found the root cause of the
json: unknown field "token"error.The problem is a configuration format mismatch combined with strict parsing mode.
What's happening:
Configuration format change: In newer versions of frp, the
tokenfield has been moved from the top-level configuration to be nested under theauthsection.Your current configuration (causing the error):
Required new format:
Strict parsing mode: frpc runs with
--strict_config=trueby default, which causes unknown fields to trigger errors.Why this happens:
tokenfield doesn't exist in the newClientCommonConfigstructureDisallowUnknownFields(), causing the errorSolutions
Solution 1: Update your configuration format (Recommended)
Change your
frpc.tomlto use the correct new format:Solution 2: Disable strict mode (Temporary workaround)
Run frpc with strict mode disabled:
Solution 3: Use legacy INI format (Not recommended)
You could use the old
.iniformat, but this is deprecated and will be removed in future versions.Additional Notes
Verification
After updating your configuration, you should be able to run:
And it should connect successfully without the "unknown field" error.
You can find the complete configuration reference in the example configuration file.
@github-actions[bot] commented on GitHub (Jul 16, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
@BustedSec commented on GitHub (Jul 16, 2025):
Field is for api key
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: github-actions[bot] @.>
Sent: Tuesday, July 15, 2025 5:42:37 PM
To: fatedier/frp @.>
Cc: Subscribed @.***>
Subject: Re: [fatedier/frp] unknown field "token" in frpc configuration (Issue #4860)
[https://avatars.githubusercontent.com/in/15368?s=20&v=4]github-actions[bot] left a comment (fatedier/frp#4860)https://github.com/fatedier/frp/issues/4860#issuecomment-3076365010
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
—
Reply to this email directly, view it on GitHubhttps://github.com/fatedier/frp/issues/4860#issuecomment-3076365010, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYWWB6MW2WSK3H36TTLQTD3IWNX3AVCNFSM6AAAAACAQKYAISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANZWGM3DKMBRGA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
@github-actions[bot] commented on GitHub (Jul 31, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.