Hi Team - I have been trying to use the Mixpanel I...
# questions
c
Hi Team - I have been trying to use the Mixpanel Import API, but it’s giving me the below mentioned error:
Copy code
{
  "error": "json decode error at element idx: 0, byte_offset: 2: invalid character 'Â' looking for beginning of value",
  "status": 0
}
Can someone please let me know why this error is coming? Any help in this regard will be highly appreciated FYI.. I’m using the below mentioned curl command
curl --location '<https://api.mixpanel.com/import?strict=1&project_id=2252131>' \
--header ‘Authorization: Basic bWl4cGFuZWxfaW1wb3J0X2Rhc19waWkuNThmZjIxLm1wLXNlcnZpY2UtYWNjb3VudDoyWHkwYlZPVXBmSnZlR2x1RGt4OWtWeHBia2MwWEdkQw==’ \ --header ‘Content-Type: application/json’ \ --header ‘Cookie: mp__origin=“”; mp__origin_referrer=“”’ \ --data ‘[ { “event”: “Lead Form Step Complete”, “properties”: { “time”: 1678027506, “distinct_id”: “186b3a83cec41e-0593e5cabc7d03-26021051-1fa400-186b3a83cedc5c”, “$browser”: “Chrome”, “$browser_version”: 109, “$city”: “Los Angeles”, “$current_url”: “https://services-hotfix.techshed-dev.com/services/i/sam-sc/b76e9e302/form?steps=true&amp;store=6688&amp;apronId=CXS992”, “$device_id”: “186b3a83cec41e-0593e5cabc7d03-26021051-1fa400-186b3a83cedc5c”, “$initial_referrer”: “https://homeservices--c.vf.force.com/”, “$initial_referring_domain”: “homeservices--c.vf.force.com”, “$insert_id”: “f8zvfg8g78by2jgd”, “$lib_version”: “2.45.0", “$mp_api_endpoint”: “api-js.mixpanel.com”, “$mp_api_timestamp_ms”: 1678056309549, “$os”: “Windows”, “$referrer”: “https://homeservices--c.vf.force.com/”, “$referring_domain”: “homeservices--c.vf.force.com”, “$region”: “California”, “$screen_height”: 1080, “$screen_width”: 1920, “deliveryZipCode”: “”, “email”: null, “flowName”: null, “isSchedulingSkipped”: false, “localizedStore”: “121", “mode”: “embedded”, “mp_country_code”: “US”, “mp_lib”: “web”, “mp_processing_time_ms”: 1678056309579, “noEmailReason”: “”, “page”: “Service”, “phone”: “0000000000”, “piloted”: null, “provider”: “homedepot”, “serviceId”: “b76e9e302", “serviceName”: “Schedule an In-Home Flooring Measure”, “serviceSlug”: “sam-sc”, “smsOptIn”: true, “source”: “embedded”, “step”: “storeSamContactStep”, “store”: “6688”, “zipcode”: “” } } ]’