Telegram plugin not retrieving image [ERR GET IMAGE]

octoprint-2.log (293.5 KB)

Greetings:

I have Octoprint working on a Raspberry Pi 4 with Pi Camera. the Pi is connected via ethernet and has a static IP.
Telegram was working properly, sending updates on events and Z changes which included a .GIF from the Pi Cam.

I now am getting the updates, but no image or .GIF. Instead, I get [ERR GET IMAGE]
testing the Pi Cam in Setup confirms it is producing an image. video is viewable on Control tab.

I have uninstalled/reinstalled Telegram using the Plugin Manager. I have updated the Pi using
sudo apt update -y
sudo apt full-upgrade -y
I note that Chromium browser on the Pi reports that it could not update via a pop up message when running the browser. I'm unsure if this is related.

looking at the logs, I see a lot of activity I did not see before, which I hope is a clue to identifying the problem/solution:

Log showing MANY repeats of:

2020-07-13 09:14:48,604 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 422825368...

Clearly, Telegram is unable to connect (see below) and is reporting a failure in name resolution:
A portion is below. Log is attached. I am surmising that Chromium might be having the same or related problem

octoprint-2.log|attachment](upload://pEt72dECl8G6zrHIQ8UXtKIXJCE.log) (293.5 KB)

The other, repeated Telegram related messages in log are:

2020-07-12 15:29:22,709 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:
| hardware:
| cores: 4
| freq: 1500.0
| ram: 1979600896
| os:
| id: linux
| platform: linux2
| plugins:
| pi_support:
| model: Raspberry Pi 4 Model B Rev 1.1
| octopi_version: 0.17.0
| python:
| pip: 19.3.1
| version: 2.7.16
| virtualenv: /home/pi/oprint
2020-07-12 15:29:22,709 - octoprint.server - INFO - ------------------------------------------------------------------------------
2020-07-12 15:29:25,941 - octoprint.plugins.telegram.listener - ERROR - Setting status: Got an exception while trying to connect to telegram API: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot882326858:AAHe-YuFG42GWM9H21nwtbko6XC6LCdiFyQ/getUpdates?timeout=30&offset=422825368 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xa6123db0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)). Waiting 2 minutes before trying again.
2020-07-12 15:31:26,020 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 422825368...
2020-07-12 15:31:46,047 - octoprint.plugins.telegram.listener - ERROR - Setting status: Got an exception while trying to connect to telegram API: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot882326858:AAHe-YuFG42GWM9H21nwtbko6XC6LCdiFyQ/getUpdates?timeout=30&offset=422825368 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xa61af690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)). Waiting 2 minutes before trying again.

I am unsure of how to approach the problem.
I know the Pi can ping public sites, like Google, for instance but I can't ping www.telegram.org (no response)
Perhaps I have a network setup problem that I can't figure out.

Any help is appreciated.

Thanks for any help!
I've JUST about got everything working.
Dave

Update: Created new Telegram bot. Still [ERR GET IMAGE]

I updated Pi again after discovering that some updates were available.
Octoprint no longer had the bot token listed, so I made a new bot.

Same behavior. Octoprint Logs show:

ConnectionError: HTTPConnectionPool(host='piwik.schlenz.ruhr', port=80): Max retries exceeded with url: /piwik.php?dimension1=1.5.0&send_image=0&idsite=3&uid=10af55589d0d571a&cid=10af55589d0d571a&url=http%3A%2F%2Foctoprint-telegram%2Fstarted&rec=1&_id=10af55589d0d571a&_idvc=1&action_name=started (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb2928e50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
2020-07-18 13:14:59,752 - tornado.access - WARNING - 404 GET /favicon.ico (::ffff:10.0.1.98) 3.82ms
octoprint-5.log (464.5 KB)

Does anyone have any idea what the connection errors could be related to and how to address them?

Thanks. Any help is greatly appreciated.

Dave

Maybe I'm a bit late and the problem is already solved, however I came here after having the problem myself.

Turned out I did have a webcam stream URL configured but no Snapshot URL or Path to FFMPEG. Configuring these to http://localhost:8080/?action=snapshot and /usr/bin/ffmpeg respectively solved my problem.