question

stephenbashow avatar image
stephenbashow asked

204 No Content (empty http responses) and CloudScriptHTTPRequestError,Unable to send http.request to deltadna from cloud script without "CloudScriptHTTPRequestError"

When I send an http.request that should return a 204 No Content response (this is to external provider deltadna, which doesn't send any response body content for valid requests), the playfab script errors with"CloudScriptHTTPRequestError".

I tried an intentionally malformed body on the post request body so that the provider would respond with an error response (that does have content), and there was no problem with the request and response side of things in playfab.

Which makes me wonder if playfab's script server's http.request is not able to handle empty no content http responses?

,

When I send an http.request that should return a 204 No Content response (deltadna doesn't send any response packet for these valid requests), the playfab script errors with"CloudScriptHTTPRequestError". I tried an intentionally malformed body on the post request so that deltadna would respond with an error response (that does have content), and there was no problem with the request and response side of things in playfab.

Which makes me wonder if playfab's script server's http.request is not able to handle empty response content requests?

10 |1200

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

brendan avatar image
brendan answered

Thanks for calling this out, and providing us with a repro we could use for testing. We have a work item open to evaluate supporting 204 responses in Cloud Script http.request calls, and we'll update when this has been addressed.

10 |1200

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

brendan avatar image
brendan answered

That seems odd - even with a simple RequestBin test, where the response is just an OK, everything works fine for me. Do you mind if I run a few tests on your DeltaDNA endpoint directly? This is for title ID A4CF, correct?

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.

stephenbashow avatar image stephenbashow commented ·

I'll open up a ticket with the endpoint details.

0 Likes 0 ·

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.