New created app fails to run with an error APP_UNINSTALLED webhook delivery failed

Topic summary

A developer new to Shopify is encountering an error when attempting to run a newly created test app.

Setup Process:

  • App created using npm init @app@latest
  • Error occurs when running npm run dev -- --verbose --tunnel-url https://

Error Details:

  • The main error message is: APP_UNINSTALLED webhook delivery failed
  • Additional error: App hasn't started in time, giving up
  • Connection error also appears: Error: connect ECONNREFUSED 127.0.0.1:19597

Technical Context:
The verbose logs show Express router initialization and Remix server attempting to start on localhost:34841, but the app fails to start within the expected timeframe. This prevents the webhook system from successfully delivering the APP_UNINSTALLED webhook.

Current Status:
The issue remains unresolved with no responses or solutions provided yet. The problem appears to be related to app startup timing and webhook configuration in the development environment.

Summarized with AI on November 12. AI used: claude-sonnet-4-5-20250929.

I am new to shopify. I created a test app using command

npm init /app@latest

and every things go fine but when I run

npm run dev -- --verbose --tunnel-url https://

an error shows up:


16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:route trace ‘
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:layer new ‘/’
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:route unbind '

16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:layer new ‘/’
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:route unlink ‘
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:layer new ‘/’
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:route unlock '

16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:layer new ‘/’
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:route unsubscribe ‘*’
16:30:11 │ remix │ Sat, 10 Feb 2024 13:00:11 GMT express:router:layer new ‘/’
16:30:11 │ remix │ [remix-serve] http://localhost:34841 (http://192.168.132.156:34841)
16:30:11 │ remix │ [proxychains] Strict chain … 192.168.132.107:1080
16:30:11 │ remix │ … 2a41-5-52-204-27.ngrok-free.app:443
16:30:11 │ webhooks │ App hasn’t started in time, giving up
16:30:11 │ webhooks │ APP_UNINSTALLED webhook delivery failed
16:30:11 │ remix │ … OK
16:30:11 │ remix │ 2024-02-10T13:00:11.693Z prisma:get-platform Found distro info:
16:30:11 │ remix │ {
16:30:11 │ remix │ “targetDistro”: “debian”,
16:30:11 │ remix │ “familyDistro”: “debian”,
16:30:11 │ remix │ “originalDistro”: “ubuntu”
16:30:11 │ remix │ }
16:30:11 │ remix │ 2024-02-10T13:00:11.693Z prisma:get-platform Trying platform-specific paths for “debian” (and “ubuntu”)
16:30:11 │ remix │ 2024-02-10T13:00:11.694Z prisma:get-platform Found distro info:
16:30:11 │ remix │ {
16:30:11 │ remix │ “targetDistro”: “debian”,
16:30:11 │ remix │ “familyDistro”: “debian”,
16:30:11 │ remix │ “originalDistro”: “ubuntu”
16:30:11 │ remix │ }
16:30:11 │ remix │ 2024-02-10T13:00:11.694Z prisma:get-platform Trying platform-specific paths for “debian” (and “ubuntu”)
16:30:11 │ remix │ 2024-02-10T13:00:11.695Z prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.3
16:30:11 │ remix │ 2024-02-10T13:00:11.695Z prisma:get-platform The parsed libssl version is: 3.0.x
16:30:11 │ remix │ 2024-02-10T13:00:11.696Z prisma:client:engines:resolveEnginePath enginePath
/home/mohammad/myfiles/git_repo/shopify/sixth_app/sixth-app-project/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node
16:30:11 │ remix │ 2024-02-10T13:00:11.704Z prisma:client:libraryEngine library starting
16:30:11 │ remix │ 2024-02-10T13:00:11.704Z prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.3
16:30:11 │ remix │ 2024-02-10T13:00:11.704Z prisma:get-platform The parsed libssl version is: 3.0.x
16:30:11 │ remix │ 2024-02-10T13:00:11.705Z prisma:client:engines:resolveEnginePath enginePath
/home/mohammad/myfiles/git_repo/shopify/sixth_app/sixth-app-project/node_modules/.prisma/client/libquery_engine-debian-openssl-3.0.x.so.node
16:30:11 │ remix │ 2024-02-10T13:00:11.705Z prisma:client:libraryEngine library started

Error forwarding web request: Error: connect ECONNREFUSED 127.0.0.1:41157
2024-02-10T13:00:47.150Z: Killing process 91795: npm exec remix dev
2024-02-10T13:00:47.156Z: Closing reverse HTTP proxy
16:30:47 │ extensions │ 2024-02-10T13:00:47.156Z: Closing file watching for extension with ID dev-18851669-3509-454c-89a6-12ea7c4e93bc
16:30:47 │ extensions │ 2024-02-10T13:00:47.157Z: Closing file watching for extension with ID dev-9f20a8c3-433a-492e-82c5-50235d297e3b
16:30:47 │ extensions │ 2024-02-10T13:00:47.157Z: Closing file watching for extension with ID dev-71f8906e-6076-4c15-8d7a-8eca6aa357b6
16:30:47 │ extensions │ 2024-02-10T13:00:47.157Z: Closing file watching for extension with ID dev-41e4fa45-fa0d-4a5d-b8fb-874b33964b8b
16:30:47 │ extensions │ 2024-02-10T13:00:47.157Z: Closing file watching for extension with ID dev-f97e16f8-2be1-45e3-ac05-e65fdd3e685c
16:30:47 │ extensions │ 2024-02-10T13:00:47.175Z: File watching closed for extension with dev-18851669-3509-454c-89a6-12ea7c4e93bc
16:30:47 │ extensions │ 2024-02-10T13:00:47.182Z: File watching closed for extension with dev-9f20a8c3-433a-492e-82c5-50235d297e3b
16:30:47 │ extensions │ 2024-02-10T13:00:47.188Z: File watching closed for extension with dev-71f8906e-6076-4c15-8d7a-8eca6aa357b6
16:30:47 │ extensions │ 2024-02-10T13:00:47.194Z: File watching closed for extension with dev-41e4fa45-fa0d-4a5d-b8fb-874b33964b8b
16:30:47 │ extensions │ 2024-02-10T13:00:47.199Z: File watching closed for extension with dev-f97e16f8-2be1-45e3-ac05-e65fdd3e685c
2024-02-10T13:00:47.207Z: Killing process 91813: sh -c remix dev
2024-02-10T13:00:47.211Z: Sending “Partners” GraphQL request:


what should I do to fix this?

```css
node -v
v20.11.0

shopify version:
Current Shopify CLI version: 3.55.4

npm --version
10.2.4