Skip to content

client.file_unreadable

A local file cannot be read

Type https://mthds.ai/errors/client.file_unreadable
Family client: What a client detects itself, and never receives as a response body.
Domain input: the caller acts, by changing the request or its inputs
Retry no: repeating the operation fails the same way
HTTP status none (client)
Raised as an error a client detects itself, never received from a runner

What it means

A local file the client was told to read cannot be read or decoded.

What to do

Check the path, the file's permissions and its encoding, then try again.

Next steps

A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the caller, and the second for any other reader.

Reader Kind Detail
The domain's actor change_input Check that '{path}' exists and is readable, then try again.
Any other reader change_input Check that '{path}' exists and is readable, then try again.

Detail

The problem's detail is written from this template, filled with the occurrence's parameters:

The local file '{path}' cannot be read (reason: {reason}).

Parameters

Every parameter is present on every occurrence of the code.

Name Type Description
path caller_text The file's path.
reason identifier Why it cannot be read.

See also