Jump to content

2.3.0 - 'ascii' codec can't encode character


Valodia De Seynes
Go to solution Solved by Angelblue05,

Recommended Posts

Valodia De Seynes

Hi, today I updated Emby for Kodi from 2.2.19 to 2.3.0 and it now seems that I cannot use KODI to play my files stored on the Emby server. Here's my log:

19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> ConnectionManager response status: 200
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> connectToAddress https://multimedia.serveur.lan:443 succeeded
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> begin connectToServer
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> beginning connection tests
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> testing connection mode 2 with server Centre Multimédia
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> tryConnect url: https://multimedia.serveur.lan:443/emby/system/info/public
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> ConnectionManager response status: 200
19:10:32 T:140263802783488  NOTICE: EMBY.connectionmanager -> calling onSuccessfulConnection with connection mode 2 with server Centre Multimédia
19:10:32 T:140263802783488  NOTICE: EMBY.ga_client -> ERROR:: ('/usr/lib/python2.7/json/__init__.py', 190, 'dump', 'fp.write(chunk)')
19:10:32 T:140263802783488  NOTICE: EMBY.ga_client -> ERROR:: UnicodeEncodeError - __init__.py:190()(fp.write(chunk))
19:10:32 T:140263802783488  NOTICE: EMBY.ga_client -> GA: {'el': '__init__.py:190()(fp.write(chunk))', 'cid': 'fe13fa8ef0efca215354148f5d5b3ba1', 'sr': '1920x1080', 'v': '1', 'ea': 'UnicodeEncodeError', 'ec': 'Exception', 'an': 'Kodi4Emby', 'ul': 'French', 't': 'event', 'av': '2.3.0', 'tid': 'UA-85356267-1', 'aid': '1', 'ua': 'Kodi/16.1 (Linux)', 'ds': 'plugin'}
19:10:32 T:140263802783488  NOTICE: EMBY.ga_client -> ERROR:: initializer for ctype 'int(*)(int, X509_STORE_CTX *)' must be a pointer to same type, not cdata 'int(*)(int, X509_STORE_CTX *)'
19:10:32 T:140263802783488  NOTICE: EMBY.service -> ERROR:: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/home/marc/.kodi/addons/plugin.video.emby/service.py", line 43, in <module>
                                                service.service_entry_point()
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/service_entry.py", line 94, in service_entry_point
                                                initialsetup.InitialSetup().setup()
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/initialsetup.py", line 40, in setup
                                                if self._server_verification() and settings('userId'):
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/initialsetup.py", line 90, in _server_verification
                                                {'ssl': self.user_client.get_ssl()})
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connectmanager.py", line 74, in get_server
                                                self.state = self._connect.connectToAddress(server, options)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/connectionmanager.py", line 321, in connectToAddress
                                                server = self.connectToServer(server, options)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/connectionmanager.py", line 503, in connectToServer
                                                return self._testNextConnectionMode(tests, 0, server, options)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/connectionmanager.py", line 562, in _testNextConnectionMode
                                                return self._onSuccessfulConnection(server, result, mode, options)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/connectionmanager.py", line 576, in _onSuccessfulConnection
                                                return self._afterConnectValidated(server, credentials, systemInfo, connectionMode, True, options)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/connectionmanager.py", line 599, in _afterConnectValidated
                                                self.credentialProvider.getCredentials(credentials)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/credentials.py", line 72, in getCredentials
                                                self._set(data)
                                              File "/home/marc/.kodi/addons/plugin.video.emby/resources/lib/connect/credentials.py", line 57, in _set
                                                json.dump(data, outfile, indent=4, ensure_ascii=False)
                                              File "/usr/lib/python2.7/json/__init__.py", line 190, in dump
                                                fp.write(chunk)
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 14: ordinal not in range(128)
19:10:32 T:140263802783488  NOTICE: EMBY.service -> Forcing shutdown
19:10:32 T:140263802783488  NOTICE: EMBY.service_entry -> ======== STOP EMBY ========

​I've got the full log here and I've also taken the liberty to put online a full debug log. I've also got issues on other computers about the ssl certificate of my server even though Emby for Kodi is not set to verify the certificate it seems that it does it anyway and fails (same result even if I set it to verify and give it the root certificate).

​All of these issues only started appearing after I updated Emby for Kodi to version 2.3.0

​Hope you can help, thanks!

Link to comment
Share on other sites

  • Solution
Angelblue05

@@Valodia De Seynes

 

I'll be releasing another stable version later today. For now, can you test this version and let me know if it corrects your issue? Thank you

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

Valodia De Seynes

Yes it works, all of the problems above are solved. Thank you for your work and your reaction time, it's awesome!

  • Like 1
Link to comment
Share on other sites

Angelblue05

Perfect, thanks for reporting back! The fix will be part of the stable release 2.3.1 (later today).

 

 

Sent from my iPhone using Tapatalk

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...