# IFrame 404 File or directory not found

**URL:** <https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489>\
**Category:** Ignition\
**Created:** [May 16, 2024, 12:43pm UTC](https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489 "2024-05-16T12:43:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihaly\_Sztojka](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mihaly\_Sztojka](https://forum.inductiveautomation.com/u/Mihaly_Sztojka)\
**Post date:** [May 16, 2024, 12:43pm UTC](https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489/1 "2024-05-16T12:43:57Z")

</div>

Hi,  
When I enter a path in the iframe and it doesn't find it, I get an error message which I have opened the topic for.  
Is there any way I can handle this?  
If the specified path is not correct then look for another one.  
I was thinking of try except

---

<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:** [May 16, 2024, 12:46pm UTC](https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489/2 "2024-05-16T12:46:42Z")

</div>

Does the page you are trying to view allow inline framing?  
Try replacing the URL with another. I use [http://neverssl.com](http://neverssl.com) for stuff like this. It just has a simple home page.

---

<div class="post-metadata">

**Author:** ![Mihaly\_Sztojka](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mihaly\_Sztojka](https://forum.inductiveautomation.com/u/Mihaly_Sztojka)\
**Post date:** [May 16, 2024, 12:57pm UTC](https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489/3 "2024-05-16T12:57:23Z")

</div>

I will describe the exact story:  
When the meter finishes measuring, it runs a script and saves the measured data in PDF format to a specified folder structure (I want to display this). e.g.: [http://abcde:8889/PDF/02\_Shaft/X/Y.pdf](http://abcde:8889/PDF/02_Shaft/X/Y.pdf).  
but sometimes it does not save the whole data at once, but in this format  
[http://abcde:8889/PDF/02\_Shaft/X@Y.pdf](http://abcde:8889/PDF/02_Shaft/X@Y.pdf)  
X= partNumber  
Y = serialNumber  
Sometimes the meter program does not save it directly to the partNumber folder, but just puts it in the 02\_Number folder with the format if you use "@".  
Sometimes it settles after 2 minutes ,but sometimes it takes a few hours.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 16, 2024, 1:13pm UTC](https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489/4 "2024-05-16T13:13:29Z")

</div>

IFrames generally cannot interact with the page into which they are embedded, and it is all at the browser, so there's simply no way to make a `try-except` structure. The only approach I can think of is to verify the validity of the URL via `httpClient` before you ever allow it to be used in an IFrame.

---

<div class="post-metadata">

**Author:** ![Mihaly\_Sztojka](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Mihaly\_Sztojka](https://forum.inductiveautomation.com/u/Mihaly_Sztojka)\
**Post date:** [May 22, 2024, 11:07am UTC](https://forum.inductiveautomation.com/t/iframe-404-file-or-directory-not-found/90489/5 "2024-05-22T11:07:11Z")

</div>

Thnaks, it's works 🙂
