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

Rest API: can't create a token #2967

Open
Foxydroid opened this issue Sep 18, 2023 · 0 comments
Open

Rest API: can't create a token #2967

Foxydroid opened this issue Sep 18, 2023 · 0 comments

Comments

@Foxydroid
Copy link

{
"status": "500",
"error": "Internal server error.",
"errormsg": "Object reference not set to an instance of an object.",
"stacktrace": " at Rests.SecureRest.NewTokenInternal(String username, String password, IHttpContext context) in /home/runner/work/TShock/TShock/TShockAPI/Rest/SecureRest.cs:line 148\r\n at Rests.SecureRest.NewTokenV2(RestRequestArgs args) in /home/runner/work/TShock/TShock/TShockAPI/Rest/SecureRest.cs:line 110\r\n at Rests.RestCommand.Execute(RestVerbs verbs, IParameterCollection parameters, IRequest request, IHttpContext context) in /home/runner/work/TShock/TShock/TShockAPI/Rest/RestCommand.cs:line 70\r\n at Rests.Rest.ExecuteCommand(RestCommand cmd, RestVerbs verbs, IParameterCollection parms, IRequest request, IHttpContext context) in /home/runner/work/TShock/TShock/TShockAPI/Rest/Rest.cs:line 448\r\n at Rests.SecureRest.ExecuteCommand(RestCommand cmd, RestVerbs verbs, IParameterCollection parms, IRequest request, IHttpContext context) in /home/runner/work/TShock/TShock/TShockAPI/Rest/SecureRest.cs:line 175\r\n at Rests.Rest.ProcessRequest(Object sender, RequestEventArgs e) in /home/runner/work/TShock/TShock/TShockAPI/Rest/Rest.cs:line 407"
}
TShock 5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant