1

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)
Billy Jhon
  • 1,035
  • 15
  • 30
  • Post your full spider code, is the class name of your spider really is `MySpider`?? and do you have a `name` attribute in this class? – Umair Ayub Nov 05 '17 at 11:32
  • @Umair Solution found. Very simple as usuall)). But your comment about the classname si itneresting. Should it me the same as the className of my spider? Say like this one - class CodeSpider(scrapy.Spider)? – Billy Jhon Nov 05 '17 at 13:30
  • Yes it should be same as your real class name. Also, i had asked you about logging out and logging back in in your previous question you asked. – Umair Ayub Nov 05 '17 at 13:32
  • Yeah. You are right. – Billy Jhon Nov 05 '17 at 13:36

1 Answers1

8

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 if anyone happen to be not clever as I am)).

Billy Jhon
  • 1,035
  • 15
  • 30