Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server response #12

Open
JohnyCoolHD opened this issue Jun 8, 2024 · 17 comments
Open

Server response #12

JohnyCoolHD opened this issue Jun 8, 2024 · 17 comments
Assignees
Labels
Priority - Unknown Effects have yet to be determined or confirmed Status - Resolving This issue is being resolved Type - Bug Broken functionality or outright missing content

Comments

@JohnyCoolHD
Copy link

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
Copy link
Owner

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

@JohnyCoolHD
Copy link
Author

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

@JohnyCoolHD
Copy link
Author

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

@JohnyCoolHD
Copy link
Author

What should I do next?

@WinterBlox
Copy link
Owner

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

@JohnyCoolHD
Copy link
Author

Did you find anything?

@WinterBlox
Copy link
Owner

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
Copy link
Author

I used the functions.

@JohnyCoolHD
Copy link
Author

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

@WinterBlox
Copy link
Owner

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
Copy link
Owner

WinterBlox commented Jun 18, 2024

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
Copy link
Author

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
Copy link
Owner

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

@WinterBlox
Copy link
Owner

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
Copy link
Owner

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

@WinterBlox WinterBlox added Status - Investigating This issue is being investigated Priority - Unknown Effects have yet to be determined or confirmed labels Jul 19, 2024
@WinterBlox WinterBlox self-assigned this Jul 19, 2024
@WinterBlox
Copy link
Owner

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

@WinterBlox WinterBlox added Type - Bug Broken functionality or outright missing content Status - Resolving This issue is being resolved and removed Status - Investigating This issue is being investigated labels Jul 19, 2024
@JohnyCoolHD
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority - Unknown Effects have yet to be determined or confirmed Status - Resolving This issue is being resolved Type - Bug Broken functionality or outright missing content
Projects
None yet
Development

No branches or pull requests

2 participants