I am trying to invoke scrapy cloud api "https://app.scrapinghub.com/api/run.json" in postman REST api testing tool to run spider job. but it is always throwing error as "{"project":["This field is required."],"spider":["This field is required."],"status":"error","message":"project: This field is required."}".
i have used api method as POST and entered all required parameters like api, project and spider
Please find the attached screen shot for your reference.
Hi All,
I am trying to invoke scrapy cloud api "https://app.scrapinghub.com/api/run.json" in postman REST api testing tool to run spider job. but it is always throwing error as "{"project":["This field is required."],"spider":["This field is required."],"status":"error","message":"project: This field is required."}".
i have used api method as POST and entered all required parameters like api, project and spider
Please find the attached screen shot for your reference.
Thanks,
Bala
Attachments (1)
scrapyCloudI....PNG
36.5 KB
0 Votes
nestor posted about 6 years ago Admin Best Answer
POST URL is just https://app.scrapinghub.com/api/run.json
And the rest should go under x-www-form-urlencoded
0 Votes
3 Comments
nestor posted about 6 years ago Admin Answer
POST URL is just https://app.scrapinghub.com/api/run.json
And the rest should go under x-www-form-urlencoded
0 Votes
bcheekati posted about 6 years ago
Hello nestor, - I changed the configuration as suggested, still, getting the same error.
Attachments (1)
scrapyCloudI....PNG
33.5 KB
0 Votes
nestor posted about 6 years ago Admin
You're still using URL parameters, the parameters should go on the body under x-www-form-urlencoded
0 Votes
Login to post a comment