CGS Avatar upload completely broken?

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
You can upload screenshots and photos to your server very easily.
  • Trying to upload avatars through construct game services for a long term project and being hit with constant errors.

    trying to upload via binary kept giving "invalid data" and nothing more.

    trying to upload via base64 was even worse:

    "[Construct Game Services] Request set avatar by Base64 failed

    runtime.js:1 Uncaught (in promise) Error: set avatar by Base64 request failed: Could not load image, might be corrupted or invalid.

    at i.Plugins.ConstructGameServices.Instance._ThrowIfBadResponse (runtime.js:1:84833)

    at i.Plugins.ConstructGameServices.Instance._SetPlayerAvatarByBase64 (runtime.js:1:59822)

    at async i.Plugins.ConstructGameServices.Instance.SetPlayerAvatarByBase64 (runtime.js:1:89342)"

    even made sure to log EVERYTHING and still the issue persisted:

    url: blob:https://preview.construct.net/821a1ca2-bb89-4234-bb7a-9c4903838e79

    javaScriptInEvents.js:19 fetch ok: true 200

    javaScriptInEvents.js:22 bytes: 9226 type: image/jpeg

    javaScriptInEvents.js:26 dims: 65536x4293001688 bitDepth: 73 colourType: 67 interlace: 80

    javaScriptInEvents.js:42 base64 length: 12304

    javaScriptInEvents.js:45 has plus: true has slash: true padding: 2

    javaScriptInEvents.js:47 decoded bytes: 9226 vs blob: 9226

    javaScriptInEvents.js:48 header intact: false

    i even converted a handmade png into base64 and uploaded it only to be rejected for "corruption" again.

    any ideas on a fix?

  • Can confirm after relentless testing that the feature is completely broken.

    Base64 strings that decode PERFECTLY do not work and come back as corrupted.

    Please fix this or tell me what's wrong so I can stop working on it.

  • Bear with me, this is a problem with one of the packages we use in CGS - I'll have a fix out shortly. Apologies for the inconvenience.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This should now be fixed, can you confirm if it now works for you?

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)