Forums

URL Not Found randomly

I'm getting a weird error, my URLs are returning 404 apparently randomly. For example, I have these 2 records in my access.log:

191.197.198.148 - - [15/Jun/2023:18:04:22 +0000] "GET /filtro/1/ HTTP/1.1" 404 179 "-" "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36" "191.197.198.148" response-time=0.030

177.75.135.19 - - [15/Jun/2023:18:04:37 +0000] "GET /filtro/1/ HTTP/1.1" 200 971 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0" "177.75.135.19" response-time=0.046

This is a Django app. My latest change in code was removing the login requirement to access that URL.

I need help to identify what is happening. Thanks.

This might be related to https://www.pythonanywhere.com/forums/topic/4924/

Well, sorry about to have opened this issue. It seems my user was logged when trying to access the page, and he should not be logged in any account. This is solved.

No problem, good to hear it's been solved.