We get an Internal Error when sending data from CloudScript:
"result": { "responseContent": null, "httpStatus": null, "httpStatusCode": 0, "requestError": "InternalError" }
Cloud Script code:
// Function URL handlers.SendToElasticSearch = function(args, context) { // Build Request var Content = JSON.stringify(args.Data); var HTTPMethod = "POST"; var ContentType = "application/json"; try { return http.request("http://.../receive", HTTPMethod, Content, ContentType); } catch (err) { return {Error: err}; } }
What could be the problem?