Hi,
I'm attempting to make an http.request() call from CloudScript to send a POST API request to an Amazon AWS endpoint.
However, I seem to get HTTP Request Errors like this:
{ "FunctionResult": null, "Logs": [ { "Level": "Error", "Message": "HTTP request error", "Data": [ [ [] ], [ [] ], [ [] ], [ [] ], [ [ [ [] ] ] ], [ [ [ [] ], [ [] ], [ [] ], [ [] ] ] ], [ [] ] ] } ], "ExecutionTimeSeconds": 0.0020326, "MemoryConsumedBytes": 11392, "APIRequestsIssued": 0, "HttpRequestsIssued": 1, "Error": { "Error": "CloudScriptHTTPRequestError", "Message": "The script made an external HTTP request, which returned an error. See the Error logs for details.", "StackTrace": "Error\n at handlers.getReplay (C949-.CloudScript.js:21:25)" } }
I'm able to access my endpoint just fine from Postman.
As an additional test, I tried just accessing https://www.google.com using POST from CloudScript, and it gets the same error as above. Using GET works (for the google test), but I need to use POST for my application.
Is there something I'm doing wrong?
The Title ID in question is C949, at CloudScript revision 563 (yes that's a lot of revisions, please don't laugh).
Thanks!