Hi,
I'm using CloudScript to connect to an external service (BackBlaze) to store a file with data info on the game, here below the snipper of code I'm using:
var headers = {};
headers["Authorization"] = uploadToken;
headers["X-Bz-File-Name"] = "test.txt";
headers["Content-Length"] = 3;
headers["Content-Type"] = 'text/plain';
headers["X-Bz-Content-Sha1"] = "a9993e364706816aba3e25717850c26c9cd0d89d";
log.debug(uploadUrl);
log.debug(uploadToken);
var aaa = http.request(uploadUrl, "POST", "abc", "text/plain", headers);
I retrieve both uploadUrl and uploadToken from others API (that's why I can't copy them in), the data format is correct bul always returns me an error, saying that "The script made an external HTTP request, which returned an error." but I can't see any of the third party API error code.
If I try the same call from Postman, it goes trough without any problem, is it possible that PlayFab wraps the other service error response? How do I read the actual one?
Thanks
Elisa