Opened 3 months ago

Closed 6 weeks ago

#3245 closed bug (Duplicate)

cannot set base url

Reported by: ffejj Owned by:
Priority: minor Milestone: 2.0.3
Component: Web UI Version: develop
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 (3)

comment:1 Changed 3 months 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.

comment:2 Changed 6 weeks ago by Cas

  • Milestone changed from 2.0.0 to 2.1.x

Ticket retargeted after milestone closed

comment:3 Changed 6 weeks ago by Cas

  • Milestone changed from 2.1.x to 2.0.3
  • Resolution set to Duplicate
  • Status changed from new to closed

Missed fixing this! A duplicate ticket with a bit more detail has been created and will be fixed shortly.

#3260

Note: See TracTickets for help on using tickets.