A connection-backed ZRC.get() to Zoho Analytics works, but ZRC.post() fails whenever a body is supplied:
response = ZRC.post(endpoint, urlencode({
"ZOHO_ACTION": "EXPORT",
"ZOHO_OUTPUT_FORMAT": "JSON",
"ZOHO_SQLQUERY": 'SELECT * FROM "Churn - CRM Sync" LIMIT 10',
}), config)Error:
AttributeError: 'bytes' object has no attribute 'encode'
... zcconnector/__init__.py, line 48
data = data.encode('utf-8') if data is not None else NoneThe same occurs with FormData. CloudSQL requires a POST parameter for the SQL query, so GET is not an option. Is this a known Python ZRC adapter issue, and is there a supported workaround?