Error cron job 'Got invalid response from API request'


(Brigitte Dekker) #1

Hi,

we have installed Piwik 2.15.0, but when we tried to run a cron job it gave us this error back:

ERROR [2015-12-27 13:45:01] Empty or invalid response 'Got invalid response from API request: http:///piwik/? module=API&method=API.get&idSite=1&period=day&date=last4&format=php&trigger=archivephp&token_auth=removed. Response was 'curl_exec: Couldn’t resolve host ‘http’. Hostname requested was: ‘’ for website id 1, Time elapsed: 0.219s, skipping

The cron job:
/usr/local/bin/php /home/MYSITE/public_html/piwik/console core:archive --url=http:///piwik/

does anybody have the same problem and/or does somebody know a way to fix this error?

Thanks!


(Matthieu Aubry) #2

Hi there,

if you still have the issue please create a bug report in our tracker @ Issues · matomo-org/piwik · GitHub

Thanks,