Page 1 of 1

Another UTF-8 codec Problem?

Posted: October 23rd, 2015, 9:05 am
by bcsc
About 20secs after I start it in the localhost:8080/sabnzbd in chrome, It shows:
Lost connection to SABnzbd..

In case of SABnzbd restart this screen will disappear automatically!
But I can see the changing speed in the title of this webpage, also in the resource monitor I see the sabnzbd.exe was transfering data.
I have to restart it, but it come to this status again about 20sec later.
Here's the log:

Code: Select all

2015-10-23 22:02:32,903::INFO::[_cplogging:216] [23/Oct/2015:22:02:32] HTTP 
Request Headers:
  REFERER: http://192.168.7.5:8080/sabnzbd/
  HOST: 192.168.7.5:8080
  CONNECTION: keep-alive
  Remote-Addr: 192.168.7.5
  ACCEPT: */*
  USER-AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36
  X-REQUESTED-WITH: XMLHttpRequest
  ACCEPT-LANGUAGE: zh-CN,zh;q=0.8
  ACCEPT-ENCODING: gzip, deflate, sdch
2015-10-23 22:02:32,903::ERROR::[_cplogging:216] [23/Oct/2015:22:02:32] HTTP 
Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 670, in respond
  File "cherrypy\lib\encoding.pyo", line 217, in __call__
  File "cherrypy\_cpdispatch.pyo", line 61, in __call__
  File "sabnzbd\interface.pyo", line 420, in tapi
  File "sabnzbd\api.pyo", line 100, in api_handler
  File "sabnzbd\api.pyo", line 152, in _api_queue
  File "sabnzbd\api.pyo", line 268, in _api_queue_default
  File "sabnzbd\api.pyo", line 959, in report
  File "json\__init__.pyo", line 243, in dumps
  File "json\encoder.pyo", line 207, in encode
  File "json\encoder.pyo", line 270, in iterencode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd6 in position 6: invalid continuation byte

Re: Another UTF-8 codec Problem?

Posted: October 23rd, 2015, 10:04 am
by shypike
Do you have anything in the queue?
Does it have accented characters or Chinese ones?
Which operating system are you using?

Re: Another UTF-8 codec Problem?

Posted: October 23rd, 2015, 10:26 am
by bcsc
Noting in queue.
All the historical jobs title are just contain ascii/english letters, and it works well when I use the 0.7 ver
win8.1 x64

Re: Another UTF-8 codec Problem?

Posted: October 23rd, 2015, 11:39 am
by sander
Shypike, out of curiosity:

As there is "sabnzbd\api.pyo", does this mean this an external application is triggering this via the API interface?

Or does SABnzbd internally also use the API interface?

Re: Another UTF-8 codec Problem?

Posted: October 23rd, 2015, 12:55 pm
by shypike
sander wrote:As there is "sabnzbd\api.pyo", does this mean this an external application is triggering this via the API interface?
Or does SABnzbd internally also use the API interface?
It's a "tapi" call, used by the skins.
The queue call returns the content of the queue.
Somewhere in the returned data there is invalid Unicode.

Re: Another UTF-8 codec Problem?

Posted: October 24th, 2015, 7:47 am
by shypike
Given an empty queue, I have no idea where the invalid Unicode is coming from.
Is there anything that might contain non plain ASCII characters?
Path to your user profile, script path, script names, category names?