question

herman avatar image
herman asked

Where can I find documentation for htttp.request?

I want to get the exact specification for this function (Cloudscript using Javascript). I have not been able to find it by searching the documentation.

10 |1200

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

1 Answer

·
Seth Du avatar image
Seth Du answered

we have some great tutorials for you. please see Writing Custom Cloud Script and Making Webhook Calls From Cloud Script (http.request usage in this one).

6 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.

herman avatar image herman commented ·

This is not what I asked.

I want a specification of the function. The tutorial is misleading (not mentioning time limits, for example), or when it returns security violations etc.

If no documentation exists please tell me so I can ask more specific questions, otherwise lead me to it. I do not need tutorials.

0 Likes 0 ·
brendan avatar image brendan herman commented ·

Time limits for Cloud Script are all listed on the Settings->Limits tab of the Game Manager. Rather than have those in multiple locations (that could then get out of sync if a change is made), we prefer to have them in one master location for reference.

It's not a spec per-se, but this tutorial is the one I'd recommend for specifics of how to use http.request(), as it has all the details you're looking for:

https://api.playfab.com/docs/tutorials/landing-automation/making-webhook-calls-from-cloud-script

0 Likes 0 ·
herman avatar image herman brendan commented ·

Well, I am getting HTTP timouts, and I first of all want to see what is the length of the Timeout. Secondly, I want to see if I can prevent the error from being logged, as this leaks sensitive information. The list in Settings does not have the HTTP timeout limit (or am I missing it), and the tutorial does in fact not have either the Timeout information nor information regarding the error reporting.

0 Likes 0 ·
Show more comments

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.