scrapy / scrapyd-client

Command line client for Scrapyd server
BSD 3-Clause "New" or "Revised" License
770 stars 146 forks source link

<urlopen error [Errno 0] Error> in scrapyd-deploy #88

Closed pratikaher88 closed 3 years ago

pratikaher88 commented 4 years ago

When running scrapyd-deploy on server as well as localhost, I get this error :-- Packing version 1583288151 Deploying to project "scrapy_app" in https://68.xxx.xx.60:6800/addversion.json Deploy failed: <urlopen error [Errno 0] Error>

my scrapy.cfg looks like this :--

[settings]
default = scrapy_app.settings

[deploy]
url = https://68.xxx.xx.60:6800/
project = scrapy_app

[scrapyd]
bind_address = 0.0.0.0

This is my setup.py :

#Automatically created by: scrapyd-deploy

from setuptools import setup, find_packages

setup(
    name         = 'project',
    version      = '1.0',
    packages     = find_packages(),
    entry_points = {'scrapy': ['settings = scrapy_app.settings']},
)
my8100 commented 4 years ago

Dual ":6800" in the url?

[deploy]
url = https://68.xxx.xx.60:6800:6800/
project = scrapy_app

Besides, addversion.json only supports POST, see https://scrapyd.readthedocs.io/en/stable/api.html#addversion-json

pratikaher88 commented 4 years ago

Actually it’s one 6800. It’s a typo. I’ll edit it out

On Wed, Mar 4, 2020 at 8:54 PM LxL notifications@github.com wrote:

Double ":6800 "?

[deploy] url = https://68.xxx.xx.60:6800:6800/ project = scrapy_app

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scrapy/scrapyd/issues/368?email_source=notifications&email_token=AGDAHZLSQGFTKFMBUQWND6TRFZXETA5CNFSM4LAZN7Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENYNSLY#issuecomment-594598191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDAHZLYVYOSJHSNMYXRHODRFZXETANCNFSM4LAZN7ZQ .

pratikaher88 commented 4 years ago

@my8100 Can you comment on how scrapyd-deploy failed?

my8100 commented 4 years ago

I don’t use Scrapyd-deploy. Maybe you can try scrapydweb instead.

mvhconsult commented 4 years ago

@my8100 Your application does require Scrapyd right? So how does it work as a replacement of scrapyd-deploy? You have written "Behind the scenes" but that is a bit vague to me.

jpmckinney commented 3 years ago

Are scrapyd-deploy or scrapyd being run behind a proxy?

jpmckinney commented 3 years ago

Closing as no response.