conscious-sapphire•3y ago
request method delete
i am trying to make a delete request to an api but it doesnt work. ( script hangs at the request then request times out)
curl equivalent
8 Replies
try to remove
label
it should be in userData
not in request root, if issue not resolved by doing so add github issueconscious-sapphireOP•3y ago
hi, i removed label but it doesnt work. i dont have a github account
i tried preNavigationHooks with gotOptions too. only sendRequest works with DELETE requesy method
adverse-sapphire•3y ago
Got no error when do it with
BasicCrawler
In HttpCrawler documentation (https://crawlee.dev/api/http-crawler/class/HttpCrawler):
By default, this crawler only processes web pages with the text/html and application/xhtml+xml MIME content types (as reported by the Content-Type HTTP header), and skips pages with other content types. If you want the crawler to process other content types, use the HttpCrawlerOptions.additionalMimeTypes constructor option.
@LeMoussel just advanced to level 3! Thanks for your contributions! 🎉
conscious-sapphireOP•3y ago
thank you. i am checking it
this works great. i tried this with httpcrawler and cheeriocrawler. it didnt work
adverse-sapphire•3y ago
@Alexey Udovydchenko: I confirm that with this script, there is a time out error.
I made this github issue: https://github.com/apify/crawlee/issues/1658#issue-1437885334
GitHub
Getting time out error with 'delete' request method · Issue #1658 ...
Which package is this bug report for? If unsure which one to select, leave blank @crawlee/http (HttpCrawler) Issue description Setting delete method for request doesn't work. Request fail w...
conscious-sapphireOP•3y ago
thank you
@LeMoussel great, thanks!