Another UTF-8 codec Problem?

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
bcsc
Newbie
Newbie
Posts: 3
Joined: October 23rd, 2015, 7:36 am

Another UTF-8 codec Problem?

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Another UTF-8 codec Problem?

Post by shypike »

Do you have anything in the queue?
Does it have accented characters or Chinese ones?
Which operating system are you using?
bcsc
Newbie
Newbie
Posts: 3
Joined: October 23rd, 2015, 7:36 am

Re: Another UTF-8 codec Problem?

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9108
Joined: January 22nd, 2008, 2:22 pm

Re: Another UTF-8 codec Problem?

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Another UTF-8 codec Problem?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Another UTF-8 codec Problem?

Post 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?
Post Reply