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 request error #2745

Closed
anonymous-matomo-user opened this issue Oct 29, 2011 · 5 comments
Closed

API request error #2745

anonymous-matomo-user opened this issue Oct 29, 2011 · 5 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hello Piwik Team,

First, I want to say Thank you for this great tool.

But I have faced a problem with Piwik API.
Below are the steps of how the problem can be achieved:
1. Making a request to any widget without specifying @columns parameter. e.g.: index.php?module=API&format=html&method=VisitsSummary.get&idSite=2&period=range&date=2011-10-01,2011-10-01 first screen shot

It returns Visits = '4' and it's Ok.

2. Making request with incorrect @columns parameter. e.g.:
index.php?module=API&format=html&method=VisitsSummary.get&idSite=2&period=range&date=2011-10-01,2011-10-01&columns=nb_act second screen shot
It returns '0' and it's Ok as such a metric doesn't exist.

3. Making request without @columns parameter again (The same as in first step). e.g.:
index.php?module=API&format=html&method=VisitsSummary.get&idSite=2&period=range&date=2011-10-01,2011-10-01 third screen shot
It returns Visits = '0' and it's _not Ok_.

Please, let me know if something is unclear.
Waiting for your response.
Thank you.

Regards,
Alex Karpov
Keywords: API, incorrect parameter

@anonymous-matomo-user
Copy link
Author

Attachment: First screen shot
01.jpg

@anonymous-matomo-user
Copy link
Author

Attachment: Second screenshot
02.jpg

@anonymous-matomo-user
Copy link
Author

Attachment: Third screenshot
03.jpg

@mattab
Copy link
Member

mattab commented Oct 30, 2011

Thank you for the report!

It was also reported in: #2748

@mattab
Copy link
Member

mattab commented Dec 18, 2011

(In [5562]) Fixes #2748 Now throwing exception when requested column does not seem valid
It seems to fix the issue

Refs #2745

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. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

2 participants