I have a problem, I hope you can help me

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

Convert the response to a dictionary, so it should be simpler.

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

1 Like


İD user =key

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.

Use this method, all we need is how you are handling your relevant blocks


The first stage is to enter and view the ads in general. There, either click on the spinner to filter the required city or click on the bottom to “Show details”. Here, the comparison is made in order to know whether the ad is on the favorites list or not.