Using the webserver.py/client.py scripts defined in the test case section in the description:
$ dpkg -l | grep twisted
ii python3-twisted 18.9.0-11ubuntu0.20.04.1 all Event-based framework for internet applications
ii python3-twisted-bin:amd64 18.9.0-11ubuntu0.20.04.1 amd64 Event-based framework for internet applications
$ twistd3 -y ./webserver.py
$ ./client.py
== BODY: --8825899812428059282
--8825899812428059282--
The multipart request works fine (it's logged at the end) and there's no exception thrown to the logs:
# AUTOPKGTEST NOTES
Autopkgtest failures in automat are due to a missing package in Ubuntu: python-twisted-core is missing in Focal (as the rest of python2 packages) but is required by automat tests. This has been reported in the following bug:
#VERIFICATION- DONE-FOCAL
Using the webserver. py/client. py scripts defined in the test case section in the description:
$ dpkg -l | grep twisted 11ubuntu0. 20.04.1 all Event-based framework for internet applications twisted- bin:amd64 18.9.0- 11ubuntu0. 20.04.1 amd64 Event-based framework for internet applications
ii python3-twisted 18.9.0-
ii python3-
$ twistd3 -y ./webserver.py
$ ./client.py 059282
== BODY: --8825899812428
--8825899812428 059282- -
The multipart request works fine (it's logged at the end) and there's no exception thrown to the logs:
$ tail ./twistd.log 26T13:56: 41+0100 [-] Loading ./webserver.py... 26T13:56: 42+0100 [-] Loaded. 26T13:56: 42+0100 [twisted. scripts. _twistd_ unix.UnixAppLog ger#info] twistd 18.9.0 (/usr/bin/python3 3.8.5) starting up. 26T13:56: 42+0100 [twisted. scripts. _twistd_ unix.UnixAppLog ger#info] reactor class: twisted. internet. epollreactor. EPollReactor. 26T13:56: 42+0100 [-] Site starting on 8080 26T13:56: 42+0100 [twisted. web.server. Site#info] Starting factory <twisted. web.server. Site object at 0x7fc2ccad4f10> 26T13:56: 46+0100 [twisted. python. log#info] 127.0.0.1 - - [26/Feb/ 2021:12: 56:46 +0000] "POST / HTTP/1.1" 404 153 "-" "Python- httplib2/ 0.14.0 (gzip)"
2021-02-
2021-02-
2021-02-
2021-02-
2021-02-
2021-02-
2021-02-
# AUTOPKGTEST NOTES
Autopkgtest failures in automat are due to a missing package in Ubuntu: python-twisted-core is missing in Focal (as the rest of python2 packages) but is required by automat tests. This has been reported in the following bug:
https:/ /bugs.launchpad .net/ubuntu/ +source/ automat/ +bug/1917041