python-2.7scrapyscrapinghub

Scrapinghub shub deploy error - Error: Deploy failed (400): project: non_field_errors


When I try to shub deploy it in the cloud and getting the following error.

Error: Deploy failed (400):
project: non_field_errors

My current setup is as follows.

def __init__(self, startUrls, *args, **kwargs):

    self.keywords = ['sales','advertise','contact','about','policy','terms','feedback','support','faq']

    self.startUrls = startUrls

    self.startUrls = json.loads(self.startUrls)

    super(MySpider, self).__init__(*args, **kwargs)

def start_requests(self):

    for url in self.startUrls:

        yield Request(url=url)

Solution

  • Stupid me. The problem was that I was logged in under different SH account. So the project I tried to deploy did not exist. Obviously the error message could be more user frienly. But well. Hope this helps.