# URL error and gaierror

**URL:** <https://forum.inductiveautomation.com/t/url-error-and-gaierror/82642>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 3, 2023, 6:17pm UTC](https://forum.inductiveautomation.com/t/url-error-and-gaierror/82642 "2023-12-03T18:17:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vignesh\_Harikrishnan](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vignesh\_Harikrishnan](https://forum.inductiveautomation.com/u/Vignesh_Harikrishnan)\
**Post date:** [December 3, 2023, 6:17pm UTC](https://forum.inductiveautomation.com/t/url-error-and-gaierror/82642/1 "2023-12-03T18:17:30Z")

</div>

we checked the function in our script console, I got the result

But, i just use same method in my perspective project \> in one component  
am facing the following error.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 3, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/url-error-and-gaierror/82642/2 "2023-12-03T18:38:48Z")

</div>

Please post formatted code - not pictures of code. That way we can copy them into our Script Console and into our answers. You can edit your question using the pencil icon.

> [@Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831):
>
> This thread is intended as a short help file for all those struggling to post formatted code on the forum. Posting formatted code on the forum (and most others) is as simple as selecting the code and pressing the \</\> button. It works the same as applying Bold or Italic styles to your document. It preserves indentation and applies syntax highlighting. [How to post code]

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 3, 2023, 6:52pm UTC](https://forum.inductiveautomation.com/t/url-error-and-gaierror/82642/3 "2023-12-03T18:52:20Z")

</div>

How have you bound the component to the function?  
I notice that URLPath is declared outside the `def` but I don't know if that is a problem.

I also notice that you are using `system.tag.read` which doesn't appear in the 8.1 documentation so it has probably been depreciated in favour of  
[system.tag.readBlocking - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.tag.readBlocking) and  
[system.tag.readAsync - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.tag.readAsync).

The 'gai' in gaierror seems to be "get address info".
