makeImageRequest times out on Instinct 2 / 2X Solar with Garmin Connect

Hi everyone,

I’m developing a Connect IQ watch app that uses Communications.makeImageRequest() to load public map PNG tiles over HTTPS.
Instinct 2 series users have reported that the map never appears and the watch repeatedly shows “Map timed out.” One tester was on Android mobile data with Garmin Connect open and battery saver disabled.

The app requests one tile at a time. It asks Garmin to resize the image to at most 192 × 192 pixels and convert it to a black-and-white palette. If no callback arrives within 20 seconds, OpenMaps cancels the request. The latest build distinguishes two cases:

- “Garmin code: -300” means the image request callback returned -300.
- “No reply after 20s” means OpenMaps reached its own timeout without a callback.

In the Connect IQ simulator (9.3.0), the same live tile requests usually succeed, including with the PC connected through an iPhone hotspot. I’ve seen an occasional missing callback in the simulator, but I haven’t reproduced the repeated failure users are seeing on physical watches.

If you’d like to test it yourself:
apps.garmin.com/.../f5cd5919-84f9-41b3-b5c7-276a154039bc

Open Garmin Connect on your phone, then open OpenMaps on the watch and hold MENU → Test online maps. This requests a single live tile from a fixed location and works indoors without a GPS fix. If possible, try once with your phone on Wi-Fi and once on mobile data.

I'm curious if anyone has seen makeImageRequest repeatedly fail or go without a callback on these devices? Is there a Garmin-side diagnostic that can help distinguish an image-service failure from a problem delivering the bitmap back to the watch? On Insinct 3 watches, the method works fine.

  • Menu>test shows the -300 in a couple seconds. Exit app, shows what looks to be lat/lon

    Newest update is the same.....

    menu->test shows "loading demo", then maybe 30 seconds later, "failed" and a -2.

  • The hosted demo PNG also failing with -2 after 30 seconds suggests the issue may could go beyond the map provider. Both tests use makeImageRequest, so a bug in Garmin Connect or in how the Instinct 2 handles image requests is possible.

    I’ve enabled logging for the demo PNG. I can check whether the request reached my server and whether it returned the image. If you want to check again, and I see the request there but it doesn't appear on the watch it could mean Garmin successfully fetches the image but the Bluetooth response stalled or Garmin’s image conversion failed.

  • For your test server, you're using HTTPS along with a valid certificate correct?  -2 is an error you see if the server fails to respond at all.  I've tried "test" again so you should see it in your log.

  • If the problem was makeImageRequest, it likely would have been reported by others.  To me it sounds like your code or the servers involved.

  • My Server uses HTTPS with a valid certificate. I ran both tests in the Instinct 2 simulator with the same makeImageRequest code, resize settings, and PNG. The URL was the only change.

    - GitHub Pages: The image displayed, and the callback returned 200.
    - Own server: A direct HTTPS request returned 200, but the simulator callback returned 404 in 1.4 seconds. I found no matching request in Caddy’s access log.

    A live tile from the actual map provider also loaded in the simulator. This could suggest a host-specific issue in the simulator test. But it doesn't necessarily explain the -2 on your watch. There has been a similar makeImageRequest bug report.

    I have a build that uses the GitHub Pages URL, would you be willing to run Test online maps once more on your Instinct 2?Once the update is installed, could you run MENU → Test online maps (GitHub Pages) and MENU → Test OpenMaps server once each on the same phone connection? Each result stays on screen until you press BACK. Each result and the approximate time of the OpenMaps server test would help me check the log.

  • And just to make sure, is battery optimization completely turned off for Connect in the android settings? Like the "unrestricted" background mode on Google Pixels

  • I have one of my widgets that gets the weather from a 3rd party site every 15 minutes (makeWebRequest) and it's running fine.

    When it runs in the foreground, I have an option where it fires up GPS, and when it has the current location, it does the makeWebRequest right away to get the weather for that location

  • Hi! I’ve been trying to get Maps I2 Beta 1.0.9 working on my Instinct 2X Solar (firmware 17.22), but no luck so far. The GitHub Pages test gives me error -300, while the OpenMaps test gives error 0. I’ve tried both Wi-Fi and mobile data on my iPhone 12 mini, but I get the same results. Any idea what might be causing this? Thanks for your work on the app!