Skip to content

fix(production): camera panel reports the real failure reason - #14

Merged
tech5-opti merged 1 commit into
mainfrom
tushar
Aug 21, 2026
Merged

fix(production): camera panel reports the real failure reason#14
tech5-opti merged 1 commit into
mainfrom
tushar

Conversation

@tech5-opti

Copy link
Copy Markdown
Collaborator

The panel blamed the printer for every failure — "The printer may be offline, or its camera disabled in BambuBuddy."

An <img> onError reports only that something went wrong, never a status or body, so one guess had to cover a missing route, an expired session, an unconfigured BambuBuddy, and a genuinely offline printer. Those need entirely different fixes, and the guess pointed at the wrong one: it sent people to check the printer when the real answer was that the backend had not been redeployed with the camera route.

On failure the same URL is now re-requested with fetch, which does expose the status and the {detail} the proxy passes through from Tensor-Core. A 404 says the endpoint is missing from this deployment; a success says the stream dropped and to retry.

The probe aborts as soon as the status is known — it is asking a question, not watching a feed, and a successful response is an endless MJPEG body that would otherwise start a second stream from the printer nobody reads.

🤖 Generated with Claude Code

The panel blamed the printer for every failure: "The printer may be
offline, or its camera disabled in BambuBuddy." An <img> onError reports
only that something went wrong - never a status, never a body - so one
guess had to cover a missing route, an expired session, an unconfigured
BambuBuddy and a genuinely offline printer.

Those need entirely different fixes, and the guess pointed at the wrong
one: it sent people to check the printer when the actual answer was that
the backend had not been redeployed with the camera route yet.

On failure the same URL is now re-requested with fetch, which does expose
the status and the {detail} the proxy passes through from Tensor-Core, so
the panel reports the real reason. A 404 says the endpoint is missing
from this deployment; a success says the stream dropped and to retry.

That probe aborts as soon as the status is known. It is asking a
question, not watching a feed, and a successful response is an endless
MJPEG body - left open it would start a second stream from the printer
that nobody ever reads.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tensor Ready Ready Preview Aug 21, 2026 8:50am
tensor-9bct Ready Ready Preview Aug 21, 2026 8:50am

Request Review

@tech5-opti
tech5-opti merged commit 115e3f0 into main Aug 21, 2026
1 of 3 checks passed
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant