Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新license_key报错 #208

Closed
a5412398 opened this issue May 16, 2024 · 3 comments
Closed

更新license_key报错 #208

a5412398 opened this issue May 16, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@a5412398
Copy link

image

curl -X POST http://192.168.0.3:21001/api/account/update_license?key=psj1122fg001 -H "Content-Type: appli
cation/json" -d "{"license_key": "Kp5fb793-0KG4E83s-1ZY9B6r2"}"

命令没问题啊,为啥提示这个?

@a5412398 a5412398 added the bug Something isn't working label May 16, 2024
@chptnt
Copy link

chptnt commented May 19, 2024

请问你解决了吗,我更新自己的license_key 后报错:{"code":403,"message":"Unauthorized"}

@chptnt
Copy link

chptnt commented May 19, 2024

我已经解决了,你的命令应该错了,update_license?key=psj1122fg001,这一块你就保持默认给你的命令(你的命令中修改了?key=psj1122fg001),我之前的错误是因为我设置了secret_key,所以导致更新没有权限,因为命令中没有设置secret_key

@a5412398
Copy link
Author

换成这个命令,执行成功了 curl -v -k -X POST https://d.******.xyz:82/api/account/update_license?key=ps*****g001 -H "Content-Type: application/json" -d "{"license_key": "Kp5fb7*********Y9B6r2"}" 真不容易

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants