Skip to content

Incorrect url handling of non-ascii characters in asgi worker mode #3542

@benoitc

Description

@benoitc

Discussed in #3541

Originally posted by boxed March 9, 2026

Type

Bug Report

Description

Reproduction here: https://github.com/boxed/gunicorn_urlencode

Django app with a single route ö/.

Running this project with gunicorn built in asgi worker results in 404:

gunicorn_urlencode.asgi:application --worker-class asgi -t 360000 --log-file - -w 4

Using the runserver, wsgi gunicorn, or uvicorn worker loads fine:

gunicorn_urlencode.asgi:application -k uvicorn_worker.UvicornWorker -t 360000 --log-file - -w 4

Steps to Reproduce (for bugs)

No response

Configuration

No response

Logs / Error Output

No response

Gunicorn Version

gunicorn 25.1.0

Python Version

Python 3.13.1

Worker Class

asgi (beta)

Operating System

macOS 15.7.4

Additional Context

No response

Checklist

  • I have searched existing discussions and issues for duplicates
  • I have checked the documentation and FAQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions