Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulk import import_logs.py diverge from core/Tracker.php API #4277

Closed
anonymous-matomo-user opened this issue Nov 4, 2013 · 1 comment
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

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.

@mattab
Copy link
Member

mattab commented Nov 5, 2013

we fixed a few bugs related to this in 2.0 beta. Can you please try the latest 2.0 from http://builds.piwik.org/?C=N;O=D

and if there is still a problem, reopen this ticket and explain what is the bug, cheers.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants