pathole
(Patrick)
February 4, 2021, 11:03am
1
Hi,
when I use the getBulkRequest Method with Matomo 4.1.1 and append the &callback or &jsoncallback Parameter, the array values in the response will always be null. This used to work with matomo 3.14.0
Example URL:
/?module=API
&method=API.getBulkRequest
&format=json
&token_auth=xxxx
&urls[0]=method=VisitsSummary.getVisits
&jsoncallback=ng_jsonp_callback_0
&idSite=6
Example Response:
ng_jsonp_callback_0([null])
Thanks for your support,
Patrick
Lukas
(Lukas Winkler)
February 4, 2021, 11:14am
2
This seems a lot like a bug:
opened 11:13AM - 04 Feb 21 UTC
Bug
reported in https://forum.matomo.org/t/api-getbulkrequest-returns-null-with-call… back-parameter/40550
> when I use the getBulkRequest Method with Matomo 4.1.1 and append the &callback or &jsoncallback Parameter, the array values in the response will always be null. This used to work with matomo 3.14.0
example URL:
works:
https://demo.matomo.cloud/index.php?module=API&method=API.getBulkRequest&format=json&token_auth=anonymous&urls[0]=method=VisitsSummary.getVisits&idSite=1&period=week&date=today
doesn't work:
https://demo.matomo.cloud/index.php?module=API&method=API.getBulkRequest&format=json&token_auth=anonymous&urls[0]=method=VisitsSummary.getVisits&idSite=1&period=week&date=today&jsoncallback=test