Closed mherrman closed 2 years ago
@mherrman @jaredmixpanel I don't think this is actually related to the version of python. I just wan into the same error, and when reviewing the source of the library, the request function expects a "data" key in the params.
I guess that is because all the ingestion APIs have that "data" key. The SDK has a check for /engage so a quick fix likely is to also check for "jql" there: https://github.com/mixpanel/mixpanel-utils/blob/master/init.py#L242
@mherrman @argenisf thanks for the report, this should be fixed in v2.2.5. let me know if run into anything else.
Running a script using the query_jql function from python 3.10.0 returns an error:
The same script seems to return results fine when using python 3.9.1.
Script: