500 Server Response When Attempting to Add Via Plugin
500 Server Response When Attempting to Add Via Plugin
When I attempt to add a torrent using webui or Xirvik plugins in Firefox I'm getting a 500 server error. Firefox v52.0.2. I can't think of what might have changed recently, never seen this error before. Running thin client on headless Ubuntu 14.
Re: 500 Server Response When Attempting to Add Via Plugin
Can you be more specific with version etc and provide deluge logs
Re: 500 Server Response When Attempting to Add Via Plugin
Sorry
Deluge 1.3.14
Libtorrent 1.0.9.0
deluge web log:
[ERROR ] 18:30:27 json_api:285 Invalid JSON request content-type: application/json; charset=UTF-8
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 307, in render
d = self._on_json_request(request)
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 267, in _on_json_request
raise JSONException(message)
JSONException: Invalid JSON request content-type: application/json; charset=UTF-8
Don't see anything else being output to logs. Maybe I need to up my logging level?
Deluge 1.3.14
Libtorrent 1.0.9.0
deluge web log:
[ERROR ] 18:30:27 json_api:285 Invalid JSON request content-type: application/json; charset=UTF-8
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 307, in render
d = self._on_json_request(request)
File "/usr/lib/python2.7/dist-packages/deluge/ui/web/json_api.py", line 267, in _on_json_request
raise JSONException(message)
JSONException: Invalid JSON request content-type: application/json; charset=UTF-8
Don't see anything else being output to logs. Maybe I need to up my logging level?
Re: 500 Server Response When Attempting to Add Via Plugin
That's all I need thanks. It seems the recent content type changes don't allow for charset in the field.
Re: 500 Server Response When Attempting to Add Via Plugin
It actually a redundant addition that the plugin could remove so content-type is just application/json.
Re: 500 Server Response When Attempting to Add Via Plugin
Further investigation details that charset should not be set for json request so it's up to plugin author to fix.
E.g. https://github.com/request/request/issues/383
E.g. https://github.com/request/request/issues/383
Re: 500 Server Response When Attempting to Add Via Plugin
Thanks for taking a look cas. Plugin was working up until recently, makes me think it's a browser update. But for web ui they do state only up to firefox 26 is supported, so guess it was just a matter of time. Also tried Xirvik, but same error. Guess I'll have to keep looking for a better plugin.
Re: 500 Server Response When Attempting to Add Via Plugin
Ended up going with delugesiphon on Chrome. Hate using google products, but solved my issue. Seems like firefox has really been abandoned in this respect. Couldn't find any plugins that work with the lastest version. Sad...