Opened 3 weeks ago

Last modified 3 weeks ago

#3245 new bug

cannot set base url

Reported by: ffejj Owned by:
Priority: minor Milestone: 2.0.0
Component: Web UI Version: develop (git)
Keywords: Cc:

Description (last modified by Cas)

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

Change History (1)

comment:1 Changed 3 weeks ago by Cas

  • Description modified (diff)
  • Milestone changed from 2.x to 2.0.0

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

Note: See TracTickets for help on using tickets.