Importing Icon Picker POPUP component from IGNITION EXCHANGE to DESIRE PROJECT

Hello, I just imported the component of icon picker but do not show any icon

this is the url where get th info I guess

and when I try to SEARCH some icons, don't show anything.
image

You're suppressing errors with that except: pass. It's gonna make debugging VERY hard.

I suggest you NEVER do that, and particularly not when something is not working.

but that comes with the component, I just imported to the desire project , that's it

I guess it means you should be putting your own error handling there.
If you don't know what to do with it for now, just get rid of it (the whole try/except thing) and see if you get errors. Right now, your API call could be raising an error and you wouldn't know it.

Really REALLY, do NOT suppress errors like this, wherever the code may come.

You might encounter except SomeParticularError: pass, which can be fine, because it will only apply to that particular error. Someone could do that on purpose because this error can be ignored in that situation.

But with a blank except, it's one of the smelliest of code smells.

2 Likes

What project? From the exchange? If so, that's failrly important information.

I added to the tittle, sorry , yes I just imported the view and that´s it
I just can´t see any icon

What project? Link to the project. I would reach out to the developer, there is a handy link in the exchange to do just that.

Ignition Exchange | Inductive Automation

I imported this component to my standart ignition project

image

1 Like

I'll say it again:
Remove that try/except - Keep the code inside, obviously.
Then you'll see what the error is and we can start debugging.

only get a result for this print that is empty obviously

and now shows this error:

No error ?
Where you underlined the return value in your previous screenshot, do you still only get [] ?

I do not get the result, only print the first print

Put your cursor over the error and it will give more info

1 Like

image

is the connection

I replied before you added the screenshot.

Now we're moving forward: You do have an error, that was being suppressed by the except: pass.
So now we can address that error, but you'll need to tell us what it is.

edit:
Alright, so there's something wrong with the API call.

I suggest you move to the script console to debug it, it will make things much easier.
A time out could mean many things but I'm not the best at debugging those.
Hopefully someone else will jump in and give you a hand with this.

Start by making sure the path you're supplying as parameter is valid.

1 Like

I print this:

I got the correct address, I will try it the complete sentence