Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Signature is invalid for API call with trailing forward slash #59

Closed
loicteixeira opened this issue Nov 12, 2015 · 1 comment
Closed
Assignees
Labels

Comments

@loicteixeira
Copy link
Owner

Issue raised by @DerpVulpes on GameJolt

It seems like GameJolt changed a little how it handles API calls as they don't allow MD5 hash being generated with an extra / character at the end. As it was reporting that the "Signature was invalid"

Example: It doesn't accept http://gamejolt.com/api/game/v1/scores/tables/?game_id=xxx&format=jsonyyyyyyyyyy it instead expect http://gamejolt.com/api/game/v1/scores/tables?game_id=xxx&format=jsonyyyyyyyyyy (notice lack of / character after the tables).

So basically a quick fix to the problem is to change Constants.cs and remove the / character in every API_XXX string except the API_ROOT so the call will not end with /.

@loicteixeira loicteixeira self-assigned this Nov 12, 2015
@loicteixeira
Copy link
Owner Author

I couldn't reproduce the issue. However, it makes sense not to terminate URLs with a trailing slash.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant