heroiclabs / nakama-unity

Unity client for Nakama server.
https://heroiclabs.com/docs/unity-client-guide
Other
407 stars 75 forks source link

Dont get data of leaderboard #145

Closed Mehrdadgame closed 1 year ago

Mehrdadgame commented 1 year ago

Hi I have problem in get leader-board data in client (unity) my problem is get data leader-board of local host but i do set port and host is VPS I did create leader-board in server and save record in leader-board console but didn't get in unity log get leader board : Send: method='GET', uri='http://127.0.0.1:7350/v2/leaderboard/b7c182b36*****?limit=1&', body=''

Capture

lugehorsam commented 1 year ago

@Mehrdadgame can you share what error you get and confirm that the leaderboards display in the console?

lugehorsam commented 1 year ago

@Mehrdadgame also can you wrap your call in a try..catch block?

Mehrdadgame commented 1 year ago

Hi Lugehorsam

Capture1

Capture

lugehorsam commented 1 year ago

@Mehrdadgame it looks like an issue specific to your VPS. I would check your configuration settings. Are you able to authenticate properly? i.e., is this just a leaderboard issue?

Mehrdadgame commented 1 year ago

I did set NakamaConnectionData to VPS but you see get leaderboard of local

Mehrdadgame commented 1 year ago

yes just a leaderboard issue

Mehrdadgame commented 1 year ago

now play to other players is good and send rpc and connecting with server is good

lugehorsam commented 1 year ago

@Mehrdadgame there isn't anything in Nakama or SDK that would cause your exception. It's due to a misconfiguration on of your machine. I can't tell if you are testing on localhost or a VPS and which error is originating where but I'd investigate the connection settings on the machine.

Mehrdadgame commented 1 year ago

@lugehorsam Now test on VPS but get data leraderboard of localhost I dont now why get data leaderboard of local host Because Auth and game-play is connected to VPS