Exception in ASGI application

While deploying my app on hugging face getting “Exception in ASGI application” error while it builds. Can anyone please help me resolve this error I am adding the full SS of the error for the better understanding. Is there any problem in my docker file or requirements file because it perfectly works in local environment.

My Docker file:-
FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user
PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

COPY --chown=user . $HOME/app

CMD [“uvicorn”, “app:app”, “–host”, “0.0.0.0”, “–port”, “7860”]

1 Like

This issue?

I think its different from the this issue. Mine shows 500 internal server error too in the callbacks. I am using HuggingFace spaces first time so I don’t fully understand the errors.

1 Like

Hmm, it looks like an error, but you probably aren’t using Django. Python 3.10 is often used in the Hugging Face Spaces, but there shouldn’t be a problem with 3.9 either…
By the way, Docker Spaces have a lot of freedom, but there are also a lot of abuses, and there are various invisible restrictions…
Well, since there is an error message this time, it’s probably not a restriction, but a problem with some setting or dependency.