Matomo kirby dashboard, error call API, HTTP Too Many Request

Hi !
I use the plugin kirby matomo and since I have updated Matomo 3.6 to 4.2, only one widget (randomly) working.

For exemple here I only have the chart working :

This type of error showing up for 4 other calls :
error: "file_get_contents(https://mydomain.fr/?module=API&methth=mytoken&format=JSON&urls[0]=method%3DVisitsSummary.getVisits%26idSite%3D3%26period%3Dday%26date%3Dtoday&urls[1]=method%3DVisitsSummary.getVisits%26idSite%3D3%26period%3Dday%26date%3Dlast7&urls[2]=method%3DVisitsSummary.getVisits%26idSite%3D3%26period%3Dmonth%26date%3Dtoday&urls[3]=method%3DVisitsSummary.getVisits%26idSite%3D3%26period%3Dyear%26date%3Dtoday): failed to open stream: HTTP request failed! HTTP/1.1 429 Too Many Requests\r\n"


Does anyone else had this issue before ?

@batgithub did you also update the Matomo plugin to the latest version? - It should work.

If at all possible, you should access your Matomo installation via https - using a secure SSL certificate - and HTTP2, rather than HTTP1.1 (because HTTP2 handles multiple simultaneous requests directly and more robustly). That’s how our sites are setup, and they seem to be handling the latest versions of Matomo just fine!

With the last version it’s not working on local environment but working perfectly on prod :slight_smile:

So, thanks @kirbyzone for your answer.

@batgithub feel free to share what your local setup is, and we’ll try to help troubleshoot why it’s not working locally.

I have the problem of the error “section type not valid matomo-main” in a blueprint.
I have installed the latest version via composer and added the required config options.
Any idea why this happens? @sylvainjule

As already mentioned in another thread, the error is due to another plugin in your installation, Matomo plugin works fine.

1 Like

Okay, solved that issue but got a new one: Blueprint not working · Issue #35 · sylvainjule/kirby-matomo · GitHub