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

Matomo reporting API JSONDecodeError #16191

Closed
ricky94511 opened this issue Jul 8, 2020 · 1 comment
Closed

Matomo reporting API JSONDecodeError #16191

ricky94511 opened this issue Jul 8, 2020 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ricky94511
Copy link

Hi all,

My environment is Matomo Cloud(Business version 3.13.6) and I used Live.getLastVisitsDetails API to get weekly raw data.

my_params = {
        'module': 'API', 
        'method': 'Live.getLastVisitsDetails',
        'idSite': idSite,
        'period': 'week',
        'date': 'today',
        'format': 'json',
        'filter_limit': 1,
        'filter_offset': 1, 
        'token_auth': token
    }
req = requests.get(url, params = my_params)
visit_log = req.json()

Sometime I would get the error as shown below, and I check req.status_code still 200
螢幕快照 2020-07-08 上午10 09 19

I try to adjust filter_limit to decrease request context size and set filter_offset to partition the data. But even I force the parameter and run hourly, 40% would succeed and 60% would fail.

I hope for your help.

@tsteur
Copy link
Member

tsteur commented Jul 8, 2020

@ricky94511 is this still happening in the last few hours? We applied a fix just 6 hours ago.

If that's still happening could you please email our support? support@matomo.cloud

@tsteur tsteur closed this as completed Jul 8, 2020
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jul 8, 2020
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

2 participants