#3245: cannot set base url
---------------------+---------------------------
  Reporter:  ffejj   |      Owner:
      Type:  bug     |     Status:  new
  Priority:  minor   |  Milestone:  2.0.0
 Component:  Web UI  |    Version:  develop (git)
Resolution:          |   Keywords:
---------------------+---------------------------
Changes (by Cas):

 * milestone:  2.x => 2.0.0


Old description:

> after setting web base in web.conf i get this error when trying to access
> webui:
> https://pastebin.com/82XKA2Ng

New description:

 after setting web base in web.conf i get this error when trying to access
 webui:

 {{{
 web.Server Traceback (most recent call last):
 builtins.TypeError: must be str, not bytes
 /usr/lib/python3/dist-packages/twisted/web/server.py:190 in process
 189        try:
 190            resrc = self.site.getResourceFor(self)
 191            if resource._IEncodingResource.providedBy(resrc):
 /usr/lib/python3/dist-packages/twisted/web/server.py:826 in getResourceFor
 825        request.sitepath = copy.copy(request.prepath)
 826        return resource.getChildForRequest(self.resource, request)
 827
 /usr/lib/python3/dist-packages/twisted/web/resource.py:98 in
 getChildForRequest
 97        request.prepath.append(pathElement)
 98        resource = resource.getChildWithDefault(pathElement, request)
 99    return resource
 /usr/lib/python3/dist-packages/deluge/ui/web/server.py:561 in
 getChildWithDefault
 560        if base[0] != '/':
 561            base = '/' + base
 562web.Server Traceback (most recent call last):
 builtins.TypeError: must be str, not bytes
 /usr/lib/python3/dist-packages/twisted/web/server.py:190 in process
 189        try:
 190            resrc = self.site.getResourceFor(self)
 191            if resource._IEncodingResource.providedBy(resrc):
 /usr/lib/python3/dist-packages/twisted/web/server.py:826 in getResourceFor
 825        request.sitepath = copy.copy(request.prepath)
 826        return resource.getChildForRequest(self.resource, request)
 827
 /usr/lib/python3/dist-packages/twisted/web/resource.py:98 in
 getChildForRequest
 97        request.prepath.append(pathElement)
 98        resource = resource.getChildWithDefault(pathElement, request)
 99    return resource
 /usr/lib/python3/dist-packages/deluge/ui/web/server.py:561 in
 getChildWithDefault
 560        if base[0] != '/':
 561            base = '/' + base
 562
 builtins.TypeError: must be str, not bytes
 builtins.TypeError: must be str, not bytes
 }}}

--

Comment:

 Thanks for reporting, looks like an encoding issue needs fixed.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3245#comment:1>
Deluge <http://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to