Hello when the list is empty this error appears how can I skip this error
That’s always happens if you’re still accessing empty list
So use conditions, before accessing it, check if it’s empty or not then pass your blocks, use is empty list block with your list
I have used it but in all cases the list is not empty.
Remove the select item list block for dictionary, input should be only get item
I don’t think it’s a problem with the handling of empty lists,
if you pass an empty list to a for each
, it does nothing.
Be sure to actually pass a list to the
for each
If you see, when passing a text value, it throws an empty-string error, in your case it looks like you’re not passing anything at all.
How do you set completeJson222222?
The screenshot is incomplete
Taifun
‎‏I need the ad number after storing it in the favourites (ad number ) in order to compare it with the same ad in the list of ads so that it is not stored again. When the ad is in the favourites, I do not get the problem (users/ID/ad_f) But if there is no ad stored at all, the problem appears that the list is empty
you are using 2 web requests web1 and web2 and call them at the same time
then you set that variable completeJson22222 in the Web2.GotText event
and my guess is (unfortunately we can’t see it in the screnshots), you are using that variable in the Web1.GotText event where then the error happens…
instead of calling the web requests at the same time, you first should call Web2.Get and in the Web2.GotText event set the variable and call Web1.Get before doing the complete processing in the Web1.GotText event
Also please do not take pictures of your blocks, this makes it hard to read
To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.
Taifun
You forgot to use this method
The sequence of events is long and complex and I don’t know which blocks are important for the sequence of events.