You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full traceback is (the line numbers may be a little off because I've been editing the files).
Traceback (most recent call last):
File "sigfoxapi.py", line 226, in <module>
print(sigfox.callbacks('5947bc1150057463d724131c',callbacks))
File "sigfoxapi.py", line 193, in callbacks
self._request('POST', '/devicetypes/%s/callbacks/new' % (devicetype_id), params=callbacks)
File "sigfoxapi.py", line 99, in _request
resp = self.api.make_request(method, path, params=params, headers=headers)
File "/home/mjuenemann/.virtualenvs/python-sigfox-backend-api/lib/python3.5/site-packages/drest/api.py", line 200, in make_request
return self.request.make_request(method, url, params, headers)
File "/home/mjuenemann/.virtualenvs/python-sigfox-backend-api/lib/python3.5/site-packages/drest/request.py", line 395, in make_request
params = dict(self._extra_params, **params)
TypeError: type object argument after ** must be a mapping, not list
As a quick work-around I changed drest/request.py a bit but this will ignore self._extra_params.
It solves my immediate problem though.
if isinstance(params, dict):
params = dict(self._extra_params, **params)
The text was updated successfully, but these errors were encountered:
The following code will fail because the current implementation expects a dictionary as the (optional) third argument to
api.make_request()
.The full traceback is (the line numbers may be a little off because I've been editing the files).
As a quick work-around I changed
drest/request.py
a bit but this will ignoreself._extra_params
.It solves my immediate problem though.
The text was updated successfully, but these errors were encountered: