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

API: Actions.getDownload always returns empty result #12317

Closed
renefreund opened this issue Dec 1, 2017 · 2 comments
Closed

API: Actions.getDownload always returns empty result #12317

renefreund opened this issue Dec 1, 2017 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@renefreund
Copy link

Hello,

Piwik-Version: 3.2.0
MySQL-Version: 5.7.20
PHP-Version: 7.0.22-0ubuntu0.16.04.1
Only Standardplugins activated.

It seems the API-Method Actions.getDownload is broken and always return an empty result. I haven't found any related issue so i open this one.

Example URL:
https://piwik.domain-tld/piwik/?module=API&method=Actions.getDownload&idSite=1&downloadUrl=https%3A%2F%2Fwww.domain.tld%2Fdownload.pdf&period=year&date=2017&format=xml&token_auth=VALID_TOKEN

Better read:

https://piwik.domain-tld/piwik/
?module=API
&method=Actions.getDownload
&idSite=1
&downloadUrl=https%3A%2F%2Fwww.domain.tld%2Fdownload.pdf
&period=year
&date=2017
&format=xml
&token_auth=VALID_TOKEN

The Response is:
<result/>

idSite & token_auth are correct in my case. The download URL is an encoded URL of a file that is downloaded several times the last days and also appears in our archived reports for last weeks/months etc. The URL is in table piwik_log_action

apache-error.log don't show anything.

Additional Question:
Even if the API work: Would i get the exact count of downloads for (in this example) Year 2017 or do i only get the counts that any archived reports would show for this downloadurl? Like, the downloadurl is in the "other" count it would not count in my API call?

Greetings,

René

@renefreund
Copy link
Author

After some Testing i got why now result show up. If the Download-Url isnt in the archieved report for the requested time/time-period (in my case year/2017) it won't show up.

It seems i need to rebuild my reports like https://piwik.org/faq/how-to/faq_54/ suggest.

Greetings,

René

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants