scrape_url returns 0 istead of -1 in error in capacity comp