WinterBlox / FrostJolt

Public Repository for FrostJolt, a Code Library for GameMaker 2.3 and onwards that integrates Game Jolt's Game API Into a GameMaker Project.
Mozilla Public License 2.0
2 stars 0 forks source link

Server response #12

Open JohnyCoolHD opened 4 months ago

JohnyCoolHD commented 4 months ago

i got a problem with the server response: ----- The following text is the response from an external server. ----- Response ID: 1 The request was successful. See full server response below. Client Request: https://api.gamejolt.com/api/game/v1_2/sessions/check/?game_id=.... (I deleted this part for Github) HTTP Status Code: 200 Server Response: {"response":{"success":"false","message":"The signature you entered for the request is invalid."}} The server response has been parsed and is stored in global.response and the global.backlog DS Map.

WinterBlox commented 4 months ago

are you sure you entered the private key into the extension correctly

JohnyCoolHD commented 4 months ago

Yes, I did. I also checked my Gamejolt page.

JohnyCoolHD commented 4 months ago

I also changed the private key, but it still doesnt work.

JohnyCoolHD commented 4 months ago

What should I do next?

WinterBlox commented 3 months ago

I'll have a look at the session functions they might have broken somehow idk

JohnyCoolHD commented 3 months ago

Did you find anything?

WinterBlox commented 3 months ago

were you using the functions or the constructor? I checked both and didn't find anything glaringly out of place but this library needs updating to the latest version of GameMaker anyways I just haven't had time lately

JohnyCoolHD commented 3 months ago

I used the functions.

JohnyCoolHD commented 3 months ago

Could you try logging into your own game with this API? Maybe I'm using this completly wrong and don't know it

WinterBlox commented 3 months ago

Could you post the contents of the event that this function is called in? u can omit anything that's private or whatever I just need to get a general idea of the execution order

WinterBlox commented 3 months ago

Also I can't get on right now since I'm an hour away from home but I'll try to reproduce this when I get home

JohnyCoolHD commented 3 months ago

I tried multiple ways to do this. I used the Left Pressed Event and inside that event I put gj_user_authorize and gj_session_open (Not both at once) and I filled them in with my username and token for testing. I think I did something very stupid and don't know it. And yes, the obj_gjhandler is in the room.

WinterBlox commented 3 months ago

Hmm very odd, I'll try to reproduce this when I get home which won't be until the late evening probably

WinterBlox commented 2 months ago

ok so somehow my root project file has become corrupted, will try to fix it but i wont be able to do anything about this in the meantime so i will clean up the labels and then mark this appropriately

WinterBlox commented 2 months ago

apparently it was just gm being weird, i'll finish up the labels and then take a look at this

WinterBlox commented 2 months ago

alright i'm not entirely sure where the problem lies but I realized that I had a large space before the Game ID in the extension options, try checking to see if there are any accidental spaces or characters in the private key/game ID as that can mess up the signature a lot, i'll mark this as a bug for now until I can confirm whether it's an actual bug in the code or just mere happenstance

JohnyCoolHD commented 2 months ago

The issue wasn't there. Nothing has changed...