[Bug] API调用问题
#10335
Replies: 4 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
我调用mcp报错401、使用curl也是401,直接调用还是401. Tool execution failed: MCP error -32603: Panel API error: Internal Error (code: 500) |
Beta Was this translation helpful? Give feedback.
0 replies
-
![]() |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Contact Information
No response
1Panel Version
2.0.10
Problem Description
PS C:\Users\16857\Documents\cd\panel> curl -X GET "http://192.168.0.8:26462/api/v1/dashboard/current" \
<title>暂时无法访问</title> <style> body { font-family: Arial, sans-serif; text-align: center; background-color: #f9f9f9; margin: 0; padding: 0; color: #333; } .container { max-width: 600px; margin: 50px auto; padding: 20px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 8px; } .icon img { width: 100px; height: auto; } h1 { font-size: 24px; color: #555; } p { font-size: 16px; color: #666; line-height: 1.5; } .command { font-family: monospace; background: #f0f0f0; padding: 5px 10px; border-radius: 4px; display: inline-block; margin-top: 10px; } </style>暂时无法访问
当前环境已经开启了安全入口登录
可在 SSH 终端输入以下命令来查看面板入口:
1pctl user-info
Steps to Reproduce
curl -X GET "http://192.168.0.8:26462/api/v1/dashboard/current"
-H "1Panel-Token: XjFlNrH2SSQCOlIEK94T2ttLM50fAmLg"
-H "1Panel-Timestamp: <current_unix_timestamp>"
The expected correct result
No response
Related log output
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions