status N/A in requests monitoring
To Reproduce
go to requests tab
Current vs. Expected behavior
lots of requests have their origin status = N/A (for multiple possible reasons), even though the downstream status is there.
I see it is possible to fallback to showing downstream status, or yet better fully adopt it rather than origin status (since it accomodate for extra edge cases like 404 or 500s where origin status is not available.
Provide environment information
Dokploy: v0.29
Which area(s) are affected? (Select all that apply)
Application
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
Will you send a PR to fix it?
Maybe, need help
This is a follow-up to a related issue you reported earlier (#3851), and the root cause is the same — the requests table only uses OriginStatus with no fallback.
Both OriginStatus and DownstreamStatus are already available in the LogEntry type [1], but the status badge in columns.tsx exclusively renders OriginStatus [2]:
<Badge variant={getStatusColor(log.OriginStatus)}>
Status: {formatStatusLabel(log.OriginStatus)}
</Badge>
A straightforward fix would be to fall back to DownstreamStatus when OriginStatus is 0 or unavailable:
const displayStatus = log.OriginStatus || log.DownstreamStatus;
<Badge variant={getStatusColor(displayStatus)}>
Status: {formatStatusLabel(displayStatus)}
</Badge>
The file to modify is apps/dokploy/components/dashboard/requests/columns.tsx [3]. If you'd like to go further and fully adopt DownstreamStatus as the primary display (since it covers more edge cases like 404/500 where the origin never responds), that would just mean swapping the priority in the fallback logic.
To reply, just mention @dosu.
Docs are dead. Just use Dosu.