Resolution
Error messages shown in the Octopus Web Portal don't always explain what caused them. Every action you take in the Web Portal is sent to Octopus Server as an API request. The Web Portal also loads its data through API requests. You can trace these requests in the Network tab of your browser's developer tools. The response body or the request endpoint usually exposes more detail than the message shown in the UI.
To find the source of the error:
- Open your browser's developer tools (usually F12) and select the Network tab.
- Reproduce the action that caused the error.
- Find the request that failed. Inspect its endpoint, request body, and response body.
The failing request often identifies the resource, permission, or input behind the error. You can then fix it in your Octopus configuration or environment.
Symptom
One or more of the following happens in the Octopus Web Portal:
-
A page doesn't load, or the request times out.
-
A generic error message appears that doesn't name the resource involved. For example:
Resource is not found or it doesn't exist in the current space context. Please contact your administrator for more information
- An error appears that doesn't seem related to the page you're viewing.
Scope: when this is the right article
Use this article when:
- The error in the Web Portal doesn't tell you where it came from.
- You need to find the source of an error that happens after an action in the browser, or get more information about it.
- A "resource not found" error doesn't show the name or ID of the missing resource.
This article doesn't cover how to fix any one specific error. It shows how to collect more detail about the error so that you can find the right fix, or the right article for that fix.
Cause
The Web Portal is a client for the Octopus Server API. When an API request fails, the UI may show a shortened or generic message instead of the full error that the server returned. This can happen in a few ways:
- The resource isn't named: A "resource not found" message may not include the name or ID of the resource.
- The error comes from a background request: The page may make several API requests to load related data. An error from one of these requests can look unrelated to what you were doing.
Often the full error is still in the API response, and you can read it in the browser's developer tools.
Diagnosis and fix
This article covers general guidance for troubleshooting errors, not one specific issue, so these steps cover diagnosis only.
- In the browser tab where you use the Octopus Web Portal, open your browser's developer tools. This is usually F12.
- Select the Network tab in the developer tools window.
- Optional: Turn on the option to keep the log between page loads (in Chromium-based browsers, this is called Preserve log). This stops a page reload or redirect from clearing the requests you need.
- Optional: Clear the existing entries so that only the requests from the next step are listed.
- With the developer tools open, reproduce the action that caused the error in the Octopus UI. If the error happens when a page loads, reload the page.
- Find the requests that failed. These usually show a status code of
4xxor5xx, are highlighted, show as failed, or stay pending. Filtering by Fetch/XHR can make API requests easier to find. - Select each failed request and inspect:
- The endpoint (request URL): Shows which API resource was requested. Any IDs in the URL can identify the resource that wasn't found.
- The request body (payload): Shows the data the Web Portal sent, such as the values submitted from a form.
- The response body: Usually has the full error message returned by Octopus Server. It can sometimes expose more detail than the UI shows.
- Use what you find to decide on the next step. For example, check whether the resource exists in the current space, correct the configuration, or look for an article that covers the specific error.
If you need to share the network traffic with Octopus Support, capture and export a HAR file (see Related).
Warning: A HAR file can contain sensitive information, such as session data and any values submitted while recording. Share it only through a secure channel that Octopus Support provides.
Verify
- Confirm that you found the failing request. You know the endpoint, the status code, and the error message from the response body.
- After you apply a fix, open the developer tools again with the Network tab selected.
- Repeat the action that caused the original error.
- Confirm that the request that failed before now returns a successful (
2xx) status code and that the UI no longer shows the error.
Related
- Capture and export a HAR file: steps for each browser to record network traffic and export it for Octopus Support.
- Record a problem with Octopus Deploy in your web browser: how to record a screen capture and the web traffic between your browser and Octopus Server.