plain-house-32204
11/17/2020, 5:28 PMimport rudder_analytics
rudder_analytics.write_key = "my_key"
rudder_analytics.data_plane_url = "https://my.rudder.io/v1/batch"
developer_user_id = 'developer_user_id'
track_type = 'Simple Track Event'
track_data = {'key1': 'val1'}
rudder_analytics.track(developer_user_id, track_type, track_data)
It returns a 404 and no more information. However, with the same write_key / data_plane_url I can send successfully data using the generate_event script.
I'm not sure how to get more information to debug the real problem (as far as I check, the URL exists).
The version of the python package is:
(.env) # pip freeze | grep rudder
rudder-sdk-python==1.0.0b1
Any hint would be appreciated, thanks for your time!narrow-rain-89253
11/17/2020, 5:31 PMplain-house-32204
11/17/2020, 5:34 PMgenerate_event wrong.
https://<data_plane_url>/v1/batchnarrow-rain-89253
11/17/2020, 5:35 PMplain-house-32204
11/17/2020, 5:49 PM'key': 'val' ?
{
"body": {
"FORM": {},
"JSON": {},
"XML": {}
},
"endpoint": "https://www.google-analytics.com/collect",
"files": {},
"headers": {},
"method": "GET",
"params": {
"cid": "cid",
"ea": "Simple Track Event",
"ec": "All",
"ev": 0,
"ni": 0,
"t": "event",
"tid": "UA-track-id",
"uip": "11.11.11.11",
"v": "1"
},
"type": "REST",
"userId": "user-id",
"version": "1"
}narrow-rain-89253
11/17/2020, 6:00 PMplain-house-32204
11/17/2020, 6:05 PMnarrow-rain-89253
11/17/2020, 6:28 PMplain-house-32204
11/17/2020, 6:36 PMplain-house-32204
11/17/2020, 10:46 PM