Skip to content

When importing logs, if --url= is set to HTTP url and Piwik is forced to use SSL then importing logs fails #42

@mattab

Description

@mattab

When importing logs in Piwik and when Piwik is configured to use SSL by default, if you specify --url=http://piwik.example.org then Piwik will fail with this error:

2014-11-20 11:40:10,643: [DEBUG] Error when connecting to Piwik: <urlopen error Piwik returned an invalid response: <!DOCTYPE html>

The solution is to set the --url parameter to https://.... when importing logs.

To fix this issue, we could maybe detect the URL redirect from HTTP to HTTPS and make Log importer detect that HTTPS should be used.

Migrated from matomo-org/matomo#6699

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions