question

Teodor Plop avatar image
Teodor Plop asked

Batch http request #2

I can successfully connect to Azure Table Storage from Playfab and can send any simple requests without issue.

I am trying to send a batch request, and this seems to generate some internal errors from the http.request method. Further testing made me realize that setting contentType parameter from http.request to "multipart/mixed;boundary=batch_${this.batchId}" is causing this error. It's worth mentioning that the same code works flawlessly in Postman.

Does anyone have a solution to this? How can you send batch requests using Playfab?

Thanks in advance!

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

Citrus Yan avatar image Citrus Yan commented ·

What does the error message say?

0 Likes 0 ·
Teodor Plop avatar image Teodor Plop Citrus Yan commented ·
                "Level": "Error",
                "Message": "HTTP request error",

                 ......
                "result": {
                        "responseContent": null,
                        "httpStatus": null,
                        "httpStatusCode": 0,
                        "requestError": "InternalError"
                    },
                    "httpRequestError": "InternalError"
                }
            }
"Error": "CloudScriptHTTPRequestError", "Message": "The script made an external HTTP request, which returned an error. See the Error logs for details.",
0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Teodor Plop commented ·

Can you share your title id and the name of the function that is making the batch http calls?

0 Likes 0 ·
Show more comments

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Hi @Teodor Plop, sorry for this delayed reply,

After some investigation, it looks like the "InternalError" will occur if there are more than one types added in the contentType field when making "post" requests. I will discuss this issue with the engineering team and come back later, thanks for your feedback.

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.

franklinchen avatar image franklinchen commented ·

Share the update: The multiple types within the ContentType field has been supported.

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.