prusa3d / Prusa-Firmware-ESP32-Cam

Firmware for ESP32 Cam modules to be used in Prusa Connect
GNU General Public License v3.0
192 stars 19 forks source link

“The snapshot is not available” in Prusa Connect #78

Open ZevEisenberg opened 1 week ago

ZevEisenberg commented 1 week ago

I have an ESP32-CAM running the firmware binaries from version 1.1.0 of this repo. I have my Connect Token from Prusa Connect entered. If I visit http://prusa-esp32cam.local/action_send locally, I get a 200. I'm seeing images come in from the camera on the camera's configuration page. However, in Prusa Connect, I see "The snapshot is not available." If I inspect the Prusa Connect web page and look at the console, I see errors like this:

[Error] Failed to load resource: the server responded with a status of 404 () (last, line 0)

And the body of the response is:

{
    "message": "Snapshot not found",
    "code": "NOT_FOUND_SNAPSHOT"
}

The readme mentions:

If you are getting a 400 return code from Prusa Connect, then you need to create a new other camera in Prusa Connect and enter a new token into the ESP32 camera.

But a) I'm getting a 404, not a 400, and b) I already tried deleting and recreating a new camera with a new token several times.

Any suggestions? Would logs help? I'll have to dig up a microSD card to write them, if so, but it seems like the upload is working? 🤔

Maintraxx commented 2 days ago

Is your printer online? In my case, the snapshot is only available, when the printer itself is online.

dzwiedziu-nkg commented 2 days ago

Confirm. I just configured this and works only when printer is online.

ZevEisenberg commented 1 day ago

Thank you! That worked. Am I right in thinking that the camera is connecting directly to the printer, rather than posting to Prusa Connect via a web API? If so, it might be nice to update the docs to indicate this: https://github.com/prusa3d/Prusa-Firmware-ESP32-Cam/pull/83