Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread kradem
Yes, thank you very much, the error to warning switch in 3.3.4 solved the problem. Best regards! Dana utorak, 6. travnja 2021. u 20:24:24 UTC+2 korisnik Andrew Godwin napisao je: > This is probably this error: > https://github.com/django/asgiref/issues/251#issuecomment-814337170 - I'm > goin

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread Andrew Godwin
This is probably this error: https://github.com/django/asgiref/issues/251#issuecomment-814337170 - I'm going to switch the error to a warning and we'll see if that helps, then Daphne can have a fix added at a non-emergency pace. Andrew On Tue, Apr 6, 2021, at 12:19 PM, kradem wrote: > Not sure

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread kradem
Not sure if I understand you, I'm getting an server error in my browser with rendered as quoted in the first post here with the following body: 500 Internal Server Error body { font-family: sans-serif; margin: 0; padding: 0; } h1 { padding: 0.6em 0 0.2em 20px; color: #896868; margin: 0; }

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread Andrew Godwin
The tracebacks are there somewhere, you might have to look at the raw HTTP response in the browser to see them. Andrew On Tue, Apr 6, 2021, at 10:18 AM, kradem wrote: > I'm afraid a "success" was caused by the browser cache or something similar, > the 3.3.3 version doesn't fix my problem. :( >

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread kradem
I'm afraid a "success" was caused by the browser cache or something similar, the 3.3.3 version doesn't fix my problem. :( > Could you get the traceback out of Django that's causing the 500 error and post it here? That was - kind of - my initial question, the only output I can get is the messa

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread Andrew Godwin
Aha, glad to hear it! My apologies that we didn't catch that one before release yesterday. Andrew On Tue, Apr 6, 2021, at 10:01 AM, kradem wrote: > Stop the press!! The 3.3.3 version is published in PyPi and after installing > it it all works well! :) > > Thank you! > Dana utorak, 6. travnja 2

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread kradem
Stop the press!! The 3.3.3 version is published in PyPi and after installing it it all works well! :) Thank you! Dana utorak, 6. travnja 2021. u 17:56:44 UTC+2 korisnik kradem napisao je: > Thank you very much for a quick response. > > Yes, that's the problem: > > asgiref

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread Andrew Godwin
asgiref 3.3.2 introduced stricter checks for what an async function is, so I would imagine that's the problem. 3.3.3 fixes some of them, but I'm guessing you might have a different flavour of problem. Could you get the traceback out of Django that's causing the 500 error and post it here? And

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread kradem
Thank you very much for a quick response. Yes, that's the problem: asgiref 3.3.2 When I downgrade it to 3.3.1 Django complains ("django 3.2 requires asgiref<4,>=3.3.2, but you have asgiref 3.3.1 which is incompatible."), but static files are served well. I tried with the

Re: Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread Andrew Godwin
This may be related to https://github.com/django/asgiref/issues/251 - what version of asgiref are you running? Andrew On Tue, Apr 6, 2021, at 9:43 AM, kradem wrote: > > 500 Internal Server Error > > Exception inside application. > > Daphne > > This error raises every time a file from static f

Daphne raises Internal Server Error when accessing static files from development server

2021-04-06 Thread kradem
> 500 Internal Server Error > Exception inside application. > Daphne This error raises every time a file from static folder is accessed. What would be a proper way for debugging this? I've got "justMyCode": false setting in VS Code and that doesn't catch anything. Python 3.9.2 channels