When calling /tasks/{id}/details Octopus returns a HTTP 500 error (An error occured reading the log file) #8171
Labels
kind/bug
This issue represents a verified problem we are committed to solving
Severity
Not causing deployment failures, but can cause TeamCity builds to fail due to the error code from the REST endpoint
Version
This was reported on 2022.3.10863, but can see similar reports of this on older versions. Another issue added retries to reduce occurrences of this error. However, it is still possible to experience the issue if the file is not healed before this query returns the result to the caller.
Latest Version
I could reproduce the problem in the latest build
What happened?
Octopus Server returned an error: An error occured reading the log file. This does not affect the deployment. This usually indicates a problem with the storage interface if using a SAN, or the network if using NAS or DFS. See #3550
Unexpected character encountered while parsing number: T. Path '', line 1533, position 2608.
Error from Octopus Server (HTTP 500 InternalServerError)
I would have expected to instead have the valid results up to the invalid log entry be returned.
Reproduction
Call the /tasks/{id}/details REST endpoint after editing the task log to invalidate the JSON. e.g. remove an opening bracket on one of the log lines.
Error and Stacktrace
Error will differ based on where the issue in JSON document is, but will look similar to the following:
More Information
No response
Workaround
No response
The text was updated successfully, but these errors were encountered: