Piotrekol / StreamCompanion

osu! information extractor, ranging from selected map info to live play data
MIT License
369 stars 59 forks source link

`localhost:20727/json` returns 500 #384

Closed Sclafus closed 1 year ago

Sclafus commented 1 year ago

Hello, thanks for this amazing project. I am trying to get the json output by contacting http://localhost:20727/json, but I get this error message:

The server has encountered an error and was not able to process your request.
Please contact the server administrator, informing them of the time this error occurred and the action(s) you performed that resulted in this error.
The following information may help them in finding out what happened and restoring full functionality.
Exception type: System.InvalidOperationException
Message: Nullable object must have a value.

This is with a completely new installation of osu! (not logged in) and StreamCompanion If you need further info please let me know

Sclafus commented 1 year ago

Also, I noticed that the endpoint actually works after I close osu! Steps to reproduce:

Piotrekol commented 1 year ago

Check exception that should be saved in <SC>/Files/Logs/<current_date>.txt. My guess is on BanchoUser token, which is already fixed in prerelease.

Sclafus commented 1 year ago

The logs were empty in my case, but after logging in I was able to run it correctly. I will close the issue since you said it has been already fixed in pre-release. Thanks for the fast support!