-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels