twisted.web.error.UnsupportedMethod: Expected one of [b'HEAD', b'object', b'POST']
See original GitHub issue2018-05-31T20:26:16+0800 [_GenericHTTPChannelProtocol,3,10.43.234.66] Unhandled Error
Traceback (most recent call last):
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/twisted/web/http.py", line 2145, in allContentReceived
req.requestReceived(command, path, version)
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/twisted/web/http.py", line 890, in requestReceived
self.process()
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/twisted/web/server.py", line 197, in process
self.render(resrc)
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/twisted/web/server.py", line 257, in render
body = resrc.render(self)
--- <exception caught here> ---
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/scrapyd/webservice.py", line 21, in render
return JsonResource.render(self, txrequest).encode('utf-8')
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/scrapyd/utils.py", line 20, in render
r = resource.Resource.render(self, txrequest)
File "/root/.pyenv/versions/3.6.5/lib/python3.6/site-packages/twisted/web/resource.py", line 249, in render
raise UnsupportedMethod(allowedMethods)
twisted.web.error.UnsupportedMethod: Expected one of [b'HEAD', b'object', b'POST']
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Twisted Documentation - Read the Docs
This document describes the optional dependencies that Twisted supports. The dependencies are python packages that.
Read more >Class Hierarchy - Twisted
twisted.web.error.UnexposedMethodError - Raised on any attempt to get a method which has not been exposed. twisted.web.error.UnfilledSlot - During flattening, a ...
Read more >Untitled
#civil Porta post it da scrivania, Why you crying dubstep! ... Legrand adorne 4 way, Lolshock reactions, 1 pipe tap, 2003 dodge ram...
Read more >Release notes — Scrapy 2.7.1 documentation
The scrapy parse -h command no longer throws an error (issue 5481, issue 5482) ... method that returns the next queue object (like...
Read more >python 3.x - http://url call in start request in scrapy
directly adding the urls in the start_urls["XXXXXXX.com",] it is working but calling from start_requests it is throwing error · can't reproduce ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My scrapyd log:
It looks like it did make a POST request for the first time and after that a GET request which is not supported and throwing an error.
The error seems to only occur when GETing a POST-only endpoint via a browser, which is the expected behavior.