htmx:oobErrorNoTarget on device page #11503

Closed
opened 2025-12-29 21:46:06 +01:00 by adam · 8 comments
Owner

Originally created by @deeconwastaken on GitHub (Aug 20, 2025).

Originally assigned to: @jnovinger on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.6

Python Version

3.10

Steps to Reproduce

  1. Open the page of a device (https://netbox/dcim/devices/193/)
  2. Press F12 in Chrome to get to the developer console
  3. See error message "htmx:oobErrorNoTarget" (screenshot)

Hint: HTMX Navigationis disabled

Image

Expected Behavior

no error message

Observed Behavior

The error doesn't have any major impact, only the display of some fonts is no longer correct.

Image
Originally created by @deeconwastaken on GitHub (Aug 20, 2025). Originally assigned to: @jnovinger on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.6 ### Python Version 3.10 ### Steps to Reproduce 1. Open the page of a device (https://netbox/dcim/devices/193/) 2. Press F12 in Chrome to get to the developer console 3. See error message "htmx:oobErrorNoTarget" (screenshot) Hint: HTMX Navigationis disabled <img width="1687" height="1122" alt="Image" src="https://github.com/user-attachments/assets/be6747e4-32ea-4770-aaf7-0fd590b012b4" /> ### Expected Behavior no error message ### Observed Behavior The error doesn't have any major impact, only the display of some fonts is no longer correct. <img width="1241" height="211" alt="Image" src="https://github.com/user-attachments/assets/0a3bc2d3-60e9-4aed-90c6-0346e84f6dca" />
adam added the type: bugstatus: acceptednetboxseverity: low labels 2025-12-29 21:46:06 +01:00
adam closed this issue 2025-12-29 21:46:06 +01:00
Author
Owner

@fseidler commented on GitHub (Aug 20, 2025):

I'm also having this issue, but for me it is on the Rack visualization (e.g. https://netbox/dcim/racks/2/)

It briefly seems to load the page, but after it a blank screen is shown.

Image
@fseidler commented on GitHub (Aug 20, 2025): I'm also having this issue, but for me it is on the Rack visualization (e.g. https://netbox/dcim/racks/2/) It briefly seems to load the page, but after it a blank screen is shown. <img width="1519" height="822" alt="Image" src="https://github.com/user-attachments/assets/dc03d247-20d1-4a2f-a318-2b5958c49cd6" />
Author
Owner

@jeremystretch commented on GitHub (Aug 20, 2025):

I don't think this error is related to the rack elevation issue. It can be observed on other views as well (e.g. the site detail view), and seems to stem from HTMX requests used to embed additional content in the page. Some quick testing suggests the bug was introduced in v4.3.3.

Edit: See also #20043, which captures the styling "overflow" issue.

@jeremystretch commented on GitHub (Aug 20, 2025): I don't think this error is related to the rack elevation issue. It can be observed on other views as well (e.g. the site detail view), and seems to stem from HTMX requests used to embed additional content in the page. Some quick testing suggests the bug was introduced in v4.3.3. Edit: See also #20043, which captures the styling "overflow" issue.
Author
Owner

@bonzo81 commented on GitHub (Oct 17, 2025):

After upgrading to v4.3.7 from v.4.2.5 I noticed the same issue as @fseidler but not in my dev environment also running the v4.3.7. The difference was I had enabled the experimental HTMX navigation setting in my user preferences

Image

Setting this back to disabled restored proper functionality, but it does not prevent the htmx:oobErrorNoTarget error in the browser dev console.

@bonzo81 commented on GitHub (Oct 17, 2025): After upgrading to v4.3.7 from v.4.2.5 I noticed the same issue as @fseidler but not in my dev environment also running the v4.3.7. The difference was I had enabled the experimental HTMX navigation setting in my user preferences <img width="575" height="76" alt="Image" src="https://github.com/user-attachments/assets/412b2197-a169-49bb-bdcb-cb2f4483707b" /> Setting this back to disabled restored proper functionality, but it does not prevent the `htmx:oobErrorNoTarget` error in the browser dev console.
Author
Owner

@arthanson commented on GitHub (Nov 7, 2025):

This is coming from netbox/templates/htmx/table.html specifically the hx-swap-oob calls there that are referencing things that don't exist on all pages. This is common table code for all tables, but on detail pages the tables don't have the oob control that these are referencing. It is ignorable and would either need to be suppressed by javascript or checking and changing all the includes for tables which is not feasible.

@arthanson commented on GitHub (Nov 7, 2025): This is coming from netbox/templates/htmx/table.html specifically the hx-swap-oob calls there that are referencing things that don't exist on all pages. This is common table code for all tables, but on detail pages the tables don't have the oob control that these are referencing. It is ignorable and would either need to be suppressed by javascript or checking and changing all the includes for tables which is not feasible.
Author
Owner

@einstux commented on GitHub (Nov 13, 2025):

We have seen the same issue as @fseidler, that the page is blanked after loading completely, so this is definitive not only an cosmetic issue.

@einstux commented on GitHub (Nov 13, 2025): We have seen the same issue as @fseidler, that the page is blanked after loading completely, so this is definitive not only an cosmetic issue.
Author
Owner

@jnovinger commented on GitHub (Nov 13, 2025):

We have seen the same issue as @fseidler, that the page is blanked after loading completely, so this is definitive not only an cosmetic issue.

@einstux, I think you're probably experiencing #19932, which has been closed since we will be removing the experimental HTMX navigation feature in NetBox v4.5. If you need help working around the blank page issue, refer to the comment above.

@jnovinger commented on GitHub (Nov 13, 2025): > We have seen the same issue as [@fseidler](https://github.com/fseidler), that the page is blanked after loading completely, so this is definitive not only an cosmetic issue. @einstux, I think you're probably experiencing #19932, which has been closed since we will be [removing the experimental HTMX navigation](https://github.com/netbox-community/netbox/issues/17571) feature in NetBox v4.5. If you need help working around the blank page issue, refer to the [comment above](https://github.com/netbox-community/netbox/issues/20134#issuecomment-3415365287).
Author
Owner

@einstux commented on GitHub (Nov 14, 2025):

@jnovinger You're right, I withdraw my comment.

@einstux commented on GitHub (Nov 14, 2025): @jnovinger You're right, I withdraw my comment.
Author
Owner

@jnovinger commented on GitHub (Nov 15, 2025):

This is coming from netbox/templates/htmx/table.html specifically the hx-swap-oob calls there that are referencing things that don't exist on all pages. This is common table code for all tables, but on detail pages the tables don't have the oob control that these are referencing. It is ignorable and would either need to be suppressed by javascript or checking and changing all the includes for tables which is not feasible.

@arthanson , was thinking about this and remembered that we might be able to use table.embedded here to know whether or not the table being rendered in templates/htmx/table.html is being embedded in a detail page or not. Going to put up a PR and ping you for review.

@jnovinger commented on GitHub (Nov 15, 2025): > This is coming from netbox/templates/htmx/table.html specifically the hx-swap-oob calls there that are referencing things that don't exist on all pages. This is common table code for all tables, but on detail pages the tables don't have the oob control that these are referencing. It is ignorable and would either need to be suppressed by javascript or checking and changing all the includes for tables which is not feasible. @arthanson , was thinking about this and remembered that we might be able to use `table.embedded` here to know whether or not the table being rendered in `templates/htmx/table.html` is being embedded in a detail page or not. Going to put up a PR and ping you for review.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11503