NeoNomadeN
Apify & Crawlee4y ago
1 reply
NeoNomade

ERR_INVALID_ARGUMENT Help !

I have this code, I'm using Puppeteer to scrape in API and I have to do the first request to an endpoint.
Here is the code :

var firstRequest = new Request({
    url: 'https://www.example.com/api/commerce/v1/categories',
    headers: {
        'Host': 'www.brownsfashion.com',
        'Accept': 'application/json, text/plain, */*',
        'Referer': 'https://www.example.com/',
        'FF-Country': 'CA',
        'FF-Currency': 'CAD',
    },
})

await crawler.addRequests([firstRequest])


And here is the error log:
WARN  PuppeteerCrawler: Reclaiming failed request back to the list or queue. net::ERR_INVALID_ARGUMENT at https://www.example.com/api/commerce/v1/categories
 {"id":"SFR0x1KhOJkxLjo","url":"https://www.example.com/api/commerce/v1/categories","retryCount":1}
Was this page helpful?