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
No description
No description
No description
3 Replies
conscious-sapphire
conscious-sapphire15mo ago
other-emerald
other-emeraldOP15mo ago
Thank @HonzaS . I extracted the the data from request.userData wrongly.
conscious-sapphire
conscious-sapphire15mo ago
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.

Did you find this page helpful?