bulk import import_logs.py diverge from core/Tracker.php API #4277
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
worksforme
The issue cannot be reproduced and things work as intended.
1.12 https://piwik.org/docs/tracking-api/reference/
You should use querystring for bulk method, but the import_logs.py send dict json encoded.
The code seems pretty work, if you use super user token, but when you use admin's site token, it fails.
Actually, the idsite extract from request, can't be perform, because initBulkTrackingRequests (from core/Tracker.php) is waiting for urlencoded requests.
I just adapted the importer to send data as query_string instead of dict, and it seems to be fixed.
The text was updated successfully, but these errors were encountered: