Resolution
After an Octopus Deploy upgrade, browser tabs that were open before the upgrade may continue running JavaScript from the previous version. This can cause errors when the browser attempts to load assets that are no longer available.
Refresh the Octopus Web Portal to load the current version. If the problem persists, try a private/incognito window or clear the browser's cached files for your Octopus Deploy site.
Symptom
An unexpected error occurred in Octopus v<version>: "TypeError: Failed to fetch dynamically imported module: https://octopus.example.com/.../<asset>.hashedasset.js"
Scope: when this is the right article
This article applies when the Octopus Web Portal displays JavaScript loading errors following an upgrade, particularly when the browser tab was already open before the upgrade.
Cause
Octopus Deploy uses versioned JavaScript assets for its Web Portal. After an upgrade, an existing browser session may still reference assets from the previous version. If these assets are no longer available, the browser cannot load them, resulting in a JavaScript error.
Diagnosis and fix
- Refresh the Octopus Web Portal.
- If the error persists, open the Octopus Web Portal in a private/incognito window or another browser.
- If the portal works in the private window or alternative browser, clear the cached files for the Octopus Deploy site in your usual browser, then reload.
- If the error also occurs in the private window or alternative browser, investigate whether an intermediary caching proxy or CDN is involved, if applicable.
- If the problem persists, contact Octopus Support with your Octopus version, browser, the full error message, and whether the issue occurs in a private/incognito window.
Verify
Navigate to the page or feature that previously triggered the error. Verify that it loads successfully without displaying the JavaScript error.