git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to POST html data to be handled by a route endpoint


???? ??????????????, 7 ?????????-???? 2020 - 12:34:21 ? .??. UTC+2, ??
?????R???????? DL Neil ? ??????????:

> Please post the full error message and traceback.
>
> To clarify: is the error coming from Python or from the web server?


I beleive it comes from the web server. Here it is:

Error: 500 Internal Server Error
Sorry, the requested URL 'http://superhost.gr/mailform' caused an error:

Internal Server Error
Exception:
TypeError("argument of type 'NoneType' is not iterable",) Traceback:
Traceback (most recent call last):
  File "/home/nikos/wsgi/bottle.py", line 996, in _handle
    out = route.call(**args)
  File "/home/nikos/wsgi/bottle.py", line 2007, in wrapper
    rv = callback(*a, **ka)
  File "/home/nikos/wsgi/www.py", line 189, in mailform
    if provider in FROM:
TypeError: argument of type 'NoneType' is not iterable


I somehow beleive that the following apache conf directives somehow create problem.

When superhost.gr/test tries to post html form data to the route endpoint
'/mailform' it sends it to superhost.gr/mailform and NOT at
superhost.gr/test/mailform as it should have done.

They somehow interfere.

Here is the processes running in the webserver that somehow interfere.


WSGIDaemonProcess test user=nikos group=nikos home=/home/nikos/wsgi
WSGIScriptAlias /test /home/nikos/wsgi/test.py process-group=test
application-group=%{GLOBAL}

WSGIDaemonProcess www user=nikos group=nikos home=/home/nikos/wsgi
WSGIScriptAliasMatch / /home/nikos/wsgi/www.py process-group=www
application-group=%{GLOBAL}