matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.95k stars 2.66k forks source link

Issue when exporting the annotation notes as a TSV file #21240

Open Chardonneaur opened 1 year ago

Chardonneaur commented 1 year ago

Hi team, when exporting the annotation notes through the API as a TSV file we are getting the following message: "Error: Data structure returned is not convertible in the requested format. Try to call this method with the parameters '&format=original&serialize=1'; you will get the original php data structure serialized. The data structure looks like this:" For example: https://demo.matomo.cloud/index.php?module=API&method=Annotations.getAll&idSite=1&date=2023-09-08&period=year&format=Tsv&token_auth=anonymous&translateColumnNames=1

Possible solution would be to delete this link on https://demo.matomo.cloud/index.php?module=API&action=listAllAPI&idSite=1&period=year&date=2023-09-08#

Stan-vw commented 1 year ago

Not sure if I understand, do you mean take away the API section or a specific link on the API page?

Chardonneaur commented 1 year ago

A specific link on the API page.

sgiehl commented 1 year ago

Guess we should first investigate why that error occurs in the first place. If exporting that specific API to TSC or any other format isn't possible, we can consider to remove that on the API listing, if easily possible. But we should in any case throw a proper API error.