sekassel / stp-24-server-tracker

Issue Tracker and Feature Requests for the STP 2024 Server.
0 stars 0 forks source link

After updating the empire resources credits are null #25

Closed JohannesHartUniKassel closed 1 month ago

JohannesHartUniKassel commented 1 month ago

Describe the bug A clear and concise description of what the problem is. After updating resources with events (option free in patch request enabled) the server returns null for credits.

To Reproduce Steps to reproduce the behavior:

  1. Create a game and empire
  2. Change resources with the free option enabled
  3. Do the get request
  4. See error no credits

Expected behavior A clear and concise description of what you expected to happen. There should be credits

Additional context Add any other context about the problem here. grafik

Clashsoft commented 1 month ago

Please format your issue correctly and remove placeholder text.

Are you sending the request body like this:

{
  "resources": {
    "energy": 10,
    "minerals": 20
  }
}

Or are you sending a map with all resources? Perhaps you have an entry where the value is null. Otherwise I can't reproduce/explain this.

JohannesHartUniKassel commented 1 month ago

We send a request body like the above, but we didn't encounter this issue now so maybe there were a bug on our side

Clashsoft commented 1 month ago

Ok then I will close this for now. Please re-open if you encounter this again.