Closed getorca closed 3 years ago
@getorca, it does support it. You just specify username and password for your target. What do you mean by "it works but returns a 401"? How do you add authentication to scrapyd? You proxy it through a webserver, right?
Got similar issue here.
Here are configuration that I set
Remote server
basic_auth
in this virtualhost with username and passwordLocal machine
scrapy.cfg
file with the credentialsSo when I run scrapyd-deploy
command, the message that I received is
401 - Authorization Required
I have a scrapy.cfg
file that is the same as in the readme. See:
I recommend attempting to login to your service through a browser, to be sure the basic authentication is set up correctly.
Then, please check that you don't have a ~/.netrc
file with conflicting credentials. Or, if you have only a scrapy.cfg
file, try moving the credentials to a ~/.netrc
file (it shouldn't make a difference, but it's worth a shot).
Also, ensure that your ~/.netrc
file is chmod 400
, just in case it's not being read/trusted due to weak permissions.
it doesn't seem like scrapyd-client supports basic auth. my scrapyd-deploy worked fine, but scrapyd-client is returning a 401.