V7 routing issue?

50 views
Skip to first unread message

Drazen D. Babic

unread,
Nov 24, 2022, 10:53:17 PM11/24/22
to Jam.py Users Mailing List
Hi,
create a simple test.html and call it:
/test.html
ERROR - 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Traceback (most recent call last):
  File "/home/dbabic/Downloads/SAML/py38May/lib/python3.8/site-packages/jam/wsgi.py", line 265, in __call__
    raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
127.0.0.1 - - [25/Nov/2022 11:50:14] "GET /test.html HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2022 11:50:14] "GET /jam/css/jam.css HTTP/1.1" 304 -
127.0.0.1 - - [25/Nov/2022 11:50:14] "GET /jam/css/bs5/bootstrap.css HTTP/1.1" 304 -
127.0.0.1 - - [25/Nov/2022 11:50:14] "GET /static/img/j.png HTTP/1.1" 200 -


Regards
D.

Andrew Yushev

unread,
Nov 25, 2022, 12:27:27 PM11/25/22
to Drazen D. Babic, Jam.py Users Mailing List
It is an expected response.
In v7 you must process every request in the on_request event handler 
and define a response on a valid request.
Did you change the on_request event handler to process it?


пт, 25 нояб. 2022 г. в 06:53, Drazen D. Babic <bab...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/f39f33ac-eb45-4aa6-b1c6-7b0130a8e697n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages