There was an error reading the response from the Marketplace: Please try again later. (2)

Hello,
I am running a Matomo version 4.3.1 with php version 7.3.28, and when i go to the marketplace i get the folowing error message :
“Oups… Il y a eu un problème pendant le traitement de la requête. Peut-être que le serveur a eu un souci temporaire, ou peut-être que vous avez demandé un rapport avec trop de données. Veuillez réessayer. Si cette erreur se répète veuillez contacter votre administrateur Matomo pour obtenir de l’aide.”

In the matomo.log file i have the following error : Uncaught exception: /var/www/html/plugins/Marketplace/Api/Client.php(289): There was an error reading the response from the Marketplace: Please try again later.

I have no clue of what is causing this problem.

Does any one knows what i can do to get more information about the problem or how to resolve it ?

Does your server have an access to the Internet?
If not, you won’t be able to use the marketplace from the Matomo server, and you should also disable Internet features of Matomo…

Hello,
Yes it has access to internet, it is behind a reverse-proxy, this is the config.ini.php configuration of my matomo :slight_smile:
[General]
assume_secure_protocol = 1
enable_plugin_upload = 1
custom_cacert_pem = “/root/…/custom.pem”
proxy_host_headers[] = “HTTP_X_FORWARDED_HOST”
proxy_client_headers[] = “HTTP_X_FORWARDED_FOR”

Did you try, from your matomo server, to access https://matomo.org ?
If this works, I have no idea… So I’ll let Matomo team try to find an answer… :wink:

Ok, you seem to be right, i have tried a curl https://matomo.org from the server where matomo is installed, and i have an empty response. I will investigate it, and go back to you.
Thx.

So i have managed to resolve the internet problem of the server, now i get a response from the server when i do a curl https://matomo.org, but the market place is still not working. Any idea of what i could try to find more about the root of the problem ?

Hi,

https://plugins.matomo.org/api/2.0/plugins is the URL that your browser needs to be able to access for the marketplace to work.

Hi,
I get a response from this URL when a try to curl it from the server.

My guess is that matomo is’nt able to read the response, as sugested in the log error
“Uncaught exception: /var/www/html/plugins/Marketplace/Api/Client.php(289): There was an error reading the response from the Marketplace: Please try again later.”

Hi,

This message is shown when the response Matomo gets can’t be decoded as valid JSON

Can you check if the response your server gets is the correct one?

You could also try adding a var_dump($response); there, to see what exactly Matomo reads.

It looks like the response read by Matomo is empty :s

The url requested by the browser is : https://plugins.matomo.org/api/2.0/plugins?keywords=&purchase_type=&query=&sort=lastupdated&release_channel=latest_stable&prefer_stable=1&piwik=4.3.1&php=7.3.28&mysql=5.5.68-MariaDB&num_users=3&num_websites=4

Any clue on what to do to resolve the problem ?

This post was flagged by the community and is temporarily hidden.