Skip to content
New issue

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

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

Already on GitHub? # to your account

Gamejolt API Post request limit (Possible workaround) #16

Closed
jianmingyong opened this issue Dec 25, 2017 · 0 comments
Closed

Gamejolt API Post request limit (Possible workaround) #16

jianmingyong opened this issue Dec 25, 2017 · 0 comments

Comments

@jianmingyong
Copy link

jianmingyong commented Dec 25, 2017

Gamejolt API seem to have a physical limit of 1 MB per API call. (This includes batch request calls that joins multiple operation into one API call) - The pros is that it is fast but you can't go beyond 1 mb in total which is rather useless.

Anyway, the problem is Gamejolt do not tell devs about this particular limit (or it was unintended in the first place), so if someone wanted to create a online level and wanted to submit it, they will not be able to do so if it is too large.

Storing a huge data into the cloud will be rejected unless devs split the data themselves.

For example:
I am going to store a small image file (custom online player skin) typically it would be around 500kb or so, I will use base64 encoder to get the string version of the image. Now this string would probably hit 1 mb.

You will need to split the data into chunks and use Datastore (update) to append together into a big data.

If the workaround works, this logic could be implement into Datastore (set) and all devs benefit from it.

  • As gamejolt keeps upgrading their backend, the limit may increase overtime or remain as it is.
InfectedBytes added a commit that referenced this issue Jul 14, 2018
add DataStore.SetSegmented method (fixes #16)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant