Apify and Crawlee Official Forum

Updated 3 months ago

Pass userData to request in Apify platform v3.1

Hi guys
I want to pass data to the requestQueue , how can I do it in Apify platform v3.1 ?
I were searching and saw this instruction: https://docs.apify.com/academy/node-js/request-labels-in-apify-actors. However Apify.openRequestQueue is deprecated in Apify v3.1
You can find my code in attachment
Please help . Thank you
Attachments
image.png
image.png
image.png
H
a
3 comments
Thank . I extracted the the data from request.userData wrongly.
Yeah I see now, you have put it there as code and taking it out as data. Btw do you use the vscode debugger? In that you can stop program and actually see what is there in request.userData so you can find the bug much faster.
Add a reply
Sign up and join the conversation on Discord