suriyun-mmorpg / UnityMultiplayerARPG_DatabaseManager

A MMORPG KIT's database manager project written by using .NET8
MIT License
2 stars 2 forks source link

Cannot ReadStorageItemsAsync status: 400 #2

Closed Callepo closed 11 months ago

Callepo commented 11 months ago

When using the DatabaseManager. when you try to go in game Login with username and pw > Create character > press Start game. you are instantly disconnected, and server goes in a endless loop spamming Logs Cannot ReadStorageItemsAsync status: 400

This is with Sqlite, i didnt try mysql to know if its the same issue there also. but this only happens when using the DatabaseManager. i tried using normal way, works fine, tried using the Database Manager with server ran in editor, same issue, Server from Client build same issue, server with the mmo.Net build, same issue.

Every thing that uses sqlite + Database Manager will crash with that spam

Cant find the issue yet. image

Callepo commented 11 months ago

@insthync

Callepo commented 11 months ago

I commented out this code from Mapnetworkmanager and now my char is not stuck on loading anymore im ingame. image

image

so the Restdatabaseclient cant process that, there is an issue with that

By commented out that code, image

This is never called, which stops the Endless loop, where While(!succes), cuase the database never says succes, and it gets stuck in the while

Callepo commented 11 months ago

Hmm with the above code commented out, i can play the game, but when u logout, the map server log says this image

My character new location and any changes u did before logging off is not saved, u go back to orignal position

insthync commented 11 months ago

No log at database management service-side?

Callepo commented 11 months ago

@insthync none, the window console doesnt show anything, and no log file is produced in the project folder image

Tried changing the log level to debug and error to see if it shows anything, but nothing is shown

it just spams App _secret was succesfully authenticated in a loop. image

While the map server spams the 400 error image

Callepo commented 11 months ago

@insthync oh i got it now, image

Callepo commented 11 months ago

@insthync This is the log for the Update character Sync error image

Execution plan of action filters (in the following order): Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000), Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)

insthync commented 11 months ago

Fixed, you have to update this repo and also update this one too

Callepo commented 11 months ago

Works! Ty!

Callepo commented 11 months ago

@insthync the Storage is fixed but the Update Character Async is still there maybe have to do the same with this message too.

image

Callepo commented 11 months ago

@insthync image yup this fixed it

Callepo commented 11 months ago

@insthync Made pull request

insthync commented 11 months ago

I've revert RestClient latest changes, it is not neccessary

Callepo commented 11 months ago

@insthync image

When you start game, log out, press Start game again Message pop up "Connection Rejected by server"

On log out, accestoken is getting wiped

You have to click Logout, Go back all the way to Login Window, Relogin and than u get new accestoken and you can play again