question

heathsargent avatar image
heathsargent asked

Cloudscript github integration http 400 error

I've been trying to set up github integration for our cloudscripts but it doesn't appear to be working. I've setup the repository, and selected/ integrated it through playfab (on an account which is not a part of an organization)
It looks like it has hooked correctly, I can see the webhook on github, and the upload & deploy buttons are gone on the cloudscript page - it just says "manage on github"

On the root of the repostiory is a "Cloudscripts" folder and in there is a .js file along with more folders and more .js files in those.

On github's side, I can see it tried to push to the webhook when I pushed to the repository, but it shows a "Invalid HTTP Response: 400" error

It looks like the first delivery was successfull (I guess when I set up the integration?)

CloudScriptIn-Game Economywebhooks
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

heathsargent avatar image heathsargent commented ·

So it might just not support having subfolders. Which I guess means I will need to put my many cloudscript files into the root of the repository :/

0 Likes 0 ·
heathsargent avatar image heathsargent commented ·

On another note, playfab also doesn't it like it when there are lots of files (it just times out). We had all our cloudscripts split into a separate file for each function to make it easy to find what you need etc. I've merged our ~100 js files into about 5 which it seems to be happy with.

0 Likes 0 ·

1 Answer

·
heathsargent avatar image
heathsargent answered
Just to reiterate what I discovered.
  • Playfab won't like it if you have lots of files in your github repo (it will just time out trying to concatenate them) - We had about 100 files, and it failed at about 50 I think, so I've combined our ~100 javascript files into under 10 and it's happy with it.
  • It also won't concatenate javascript files in subfolders, only files in the root folder will be discovered and concatenated.
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Citrus Yan avatar image Citrus Yan commented ·

Yes, concatenating too many files might be a problem(timeout), and, it does not support concatenating files in sub folders.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.