Shopify app dev: "Error while polling app logs" loop

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

App

Expected behavior

shopify app dev streams Function logs in the app-logs panel.

Actual behavior

The app-logs panel keeps failing and retrying every 5 seconds:

app-logs │ Error while polling app logs.
app-logs │ Retrying in 5 seconds.

--verbose shows the request but not the response. I temporarily patched the CLI to log it, and the poll endpoint returns:

400 {"errors":["Malformed JWT"]}

Other notes:

  • Started arround Oct 7th
  • It happens on two different apps in the same organization.
  • A teammate reproduced it on a different computer and network, in the same organization.
  • Re-authenticating (`shopify auth logout` + logging in again) did not help.
  • It happens on CLI 4.8.5 and 4.7.1
  • Network is fine: the request reaches app.shopify.com.
  • The rest of the dev session (tunnel, HMR, app) works normally.

Reproduction steps

  1. Use an app with at least one Function extension.
  2. Run shopify app dev.
  3. Watch the app-logs panel.

Verbose output

2026-10-07T18:28:06.349Z: Sending GET request to URL https://app.shopify.com/app_management/unstable/organizations/<org_id>/app_logs/poll
With request headers:
 - User-Agent: Shopify CLI; v=4.8.5
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: linux
 - Content-Type: application/json
15:28:06 │                  app-logs │ Error while polling app logs.
15:28:06 │                  app-logs │ Retrying in 5 seconds.

Operating system

Zorin OS 18.1 (Ubuntu 24.04 based)

CLI version

4.8.5 (also reproduced on 4.7.1)

Shell

bash

Nodejs version

v22.23.2

What language and version are you using in your application?

TypeScript 5.9, React Router 7.12 (@shopify/shopify-app-react-router), Node 22

Same issue here. Only started in the last couple of days I think.

I edited the original post to include this, for me it started yesterday arround 5pm UTC

Still the same:
09:38:13 │ app-logs │ Error while polling app logs.
09:38:13 │ app-logs │ Retrying in 5 seconds.
09:38:18 │ app-logs │ Error while polling app logs.
09:38:18 │ app-logs │ Retrying in 5 seconds.

Observing the same for the past couple of days.

Same issue here. Started happening a couple of days ago.

Hey @Liam-Shopify

Also seeing thousands of these logs spamming shopify app dev outputs. Started yesterday, but many more today.

10:43:36 │app-logs │ Error while polling app logs.
10:43:36 │app-logs │ Retrying in 5 seconds.
10:43:42 │app-logs │ Error while polling app logs.
10:43:42 │app-logs │ Retrying in 5 seconds.
10:43:47 │app-logs │ Error while polling app logs.
10:43:47 │app-logs │ Retrying in 5 seconds.

Same root cause error as the others reported:

400 {"errors":["Malformed JWT"]}

Thanks for the reports all, the relevant team are aware and are investigating the root cause. Either myself or a collegaue will follow up here once we have more information to share.

Ya same here. I guess it started recently.

Quick update all: The team responsible for the app logs poll have identified the root cause and are working on a fix. I’ll update this thread again once its shipped. Thanks for your patience with this, much appreciated.

Hi all, another quick update since it’s been a few days. The fix for this is still in progress, but I don’t have an ETA to share. I’ll update again once it’s been deployed. Thanks for your continued patience on this!

@Donal-Shopify I’m surprised this one is taking so long. Apart from the endless errors being logged every 5 seconds, there are also no actual logs coming from functions, making development, testing and troubleshooting of functions on local machine very difficult. Can you provide a fresh update?

The same here.

Also, the CLI keeps installing dependencies, and it doesn’t stop. Eventually, it uses up my computer’s resources and hangs

@Donal-Shopify any update on this? This is crucial time for BF/CM preparation, specifically for discount functions.

Thanks for the patience, everyone. I know it’s been quiet on this thread while you’re deep in BFCM prep.

The team identified the root cause, and the fix is in progress and moving through our deployment process. I don’t have a confirmed ETA yet. Either myself or a colleague will post here as soon as it’s live.

@Benny_Chan the loop where the CLI keeps installing dependencies until your machine hangs sounds like a separate issue from the app-logs polling error. Could you open a new topic with your CLI version, OS, package manager, and verbose output? We’ll look into that one on its own - thanks!

This seems to be fixed now. It’s working as expected for me at least.

I can confirm that the problem was fixed (at least for me).

@Donal-Shopify can we have a confirmation to close this thread? :slight_smile: