Hi,
I encountered same problem when i tried to connect to prestashop marketplace, first message was like I should check my internet connection, on debug mode i got something like Data from PrestaShop Addons is invalid, and cannot fallback on cache , i tought that allow_url_fopen is disabled but that was not case.
So I figured out maybe there is something with timeout, so i went to /app/config.yml and on line 107 there is timeout set to 5.0 I guess that is 5 seconds.
I changed it to 150 as you can see on attachment and it was working after that just fine.
So what was causing this ? I think that in may server needs more time to proces request and give back response if it's not in 5 secons it will throw an error.
My prestashop version is 1.7.8.0
I hope this will help someone. Cheers