Invalid input JSON on line 1, column 1: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token
my code:
from hubspot3 import Hubspot3
def sync_product(self):
conn = self.env['hubspot.connection'].search([])
api_key = conn.api_key
client = Hubspot3(api_key=api_key)
data = {
"properties": [
{
"name": "name",
"value": self.display_name or " "
},
{
"name": "description",
"value": self.description or " "
},
{
"name": "price",
"value": self.standard_price or " "
},
{
"name": "recurringbillingfrequency",
"value": "quarterly"
}
]
}
product = client.products.create(data)
what’s wrong with this i got warning like
hub root: Too many retries for /crm-objects/v1/objects/products?hapikey=92…
also:
Invalid input JSON on line 1, column 1: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token
---- request ----
POST api.hubapi.com/crm-objects/v1/objects/products?hapikey=9274****, [timeout=<class ‘int’>]
---- body ----
<class ‘NoneType’>
---- headers ----
<class ‘dict’>
---- result ----
<class ‘int’>
---- body -----
{“status”:“error”,“message”:“Invalid input JSON on line 1, column 1: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token”,“correlationId”:“88ea35f6-43c5-421a-9684-8a3fbee08532”,“requestId”:“24dcbdef-d951-4092-868d-48e7d86bf0ed”}
---- headers -----
<class ‘http.client.HTTPMessage’>
---- reason ----
Bad Request
---- trigger error ----
<class ‘NoneType’>
i have successfully connection with api i didn’t get any error with api connection.
please help.