Skip to content

doesn't work with https #51

@Notmarrco

Description

@Notmarrco

in my config file I wrote the host without "https" and I get this error :

Traceback (most recent call last):
  File "./import.py", line 23, in <module>
    resp = client.get("/photos/list.json")
  File "/usr/local/lib/python2.6/dist-packages/trovebox/http.py", line 92, in get
    return self._process_response(response)
  File "/usr/local/lib/python2.6/dist-packages/trovebox/http.py", line 188, in _process_response
    (response.status_code, response.reason))
trovebox.errors.Trovebox404Error: HTTP Error 404: Not Found

I can correct this by replacing "http" with "https" at line 69 in http.py : url = urlunparse(('http', self.host, endpoint, '', '', ''))
The problem is this urlunparse.

We probably need a scheme parsing in http.init to avoid the use of "http" hard written in http.py.

so we perhaps need a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions