V8JS Error: "curl_setopt_array(): Array keys must be CURLOPT constants or equivalent integer values"


#1

I am getting the following error: “curl_setopt_array(): Array keys must be CURLOPT constants or equivalent integer values” on my V8JS script when attempting to insert data into a database.

Are there any known resolutions for this?

Code:

 var body= {
  "resource": [
    {
      "code": "52544"
    }
  ],
  "ids": [
    0
  ],
  "filter": "string",
  "params": [
    "string"
  ]
}
    
var options={"content-type": "application/json"};
    
payload = JSON.stringify(body);
    
var postUser = platform.api.post("http://52.169.200.242/api/v2/mysql/_table/frusers/?api_key=813b0d263f902fc8118336c76779a019a6ba541eeca062b08e877a9f27a941bb",payload,options);