You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running scrapy parse http://localhost:8080 -c parse --spider test is rising error: TypeError: 'async_generator' object is not iterable.
Simple Code of Spider:
import scrapy
class TestSpider(scrapy.Spider):
name = 'test'
allowed_domains = ['localhost']
start_urls = ['http://localhost:8080']
async def parse(self, response):
for x in range(1, 5):
yield ({"test": x})
It is happened when there is yield inside async function.
scrapy crawl test - works fine
The text was updated successfully, but these errors were encountered:
I can confirm this issue, and I don’t think it is a regression, because even with the commit that is meant to fix it, and includes a test for it, I can reproduce the issue (commit 0435751, and passing an extra command line to get that commit working: -s REQUEST_FINGERPRINTER_IMPLEMENTATION=PREVIOUS_VERSION).
When running
scrapy parse http://localhost:8080 -c parse --spider test
is rising error:TypeError: 'async_generator' object is not iterable
.Simple Code of Spider:
It is happened when there is
yield
insideasync function
.scrapy crawl test
- works fineThe text was updated successfully, but these errors were encountered: