Getting The Error 403 from the Shopify @shopify/shopify-api/node_modules/node-fetch/lib

Topic summary

A developer encounters a 403 error when making OAuth access token requests through Shopify’s API, specifically from @shopify/shopify-api/node_modules/node-fetch/lib.

Environment:

  • Using @shopify/shopify-api v10.0.0 with App Bridge v3.7.7/v4.1.3 and Polaris v13.4.0
  • Node v20.14.0 on Ubuntu
  • Debug logging enabled

Symptoms:

  • React app with App Bridge fails to load after a few days of dev store installation
  • Error occurs during backend authentication/API calls
  • Stack trace points to TLS socket errors and client request failures

Current Status:

  • Issue appears intermittent (app stops loading after initial successful installation)
  • Developer has checked repository issues without finding similar cases
  • Root cause of 403 response and connection timeout remains unresolved

The post seeks clarification on whether this is expected behavior or a configuration issue, with request for more detailed error information.

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

Issue summary

Before opening this issue, I have: Check on repo issue not found the similer issue.

  • Upgraded to the latest version of the relevant packages

    • @Shopify_77 /* package and version:

    • @shopify/app-bridge”: “^3.7.7”,
      @shopify/app-bridge-react”: “^4.1.3”,
      @shopify/polaris”: “^13.4.0”,
      @shopify/polaris-viz”: “^9.3.0”,
      @shopify/shopify-api”: “^10.0.0”,

    • Node version: v20.14.0

    • Operating system: Ubuntu

  • Set { logger: { level: LogSeverity.Debug } } in my configuration, when applicable -? Setup the Debug level

  • Checked that this an issue with a Shopify API

white loading the React app and the React app bridge getting those issue. from the backend Shopify

Expected behavior

Shopify Api and Auth call work properly or it show the Correct full error ?

Actual behavior

What actually happens?
Shopify app is not loading

Steps to reproduce the problem1. Create New Shopify app with CLI

  1. do the appp installing in dev store after few day app is not loading

Debug logs

 request to https://***-dev-app-runing.myshopify.com/admin/oauth/access_token failed, reason: 
    at ClientRequest.<anonymous> (/home/*****/node_modules/@shopify/shopify-api/node_modules/node-fetch/lib/index.js:1501:11)
    at ClientRequest.emit (node:events:519:28)
    at TLSSocket.socketErrorListener (node:_http_client:500:9)
    at TLSSocket.emit (node:events:519:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  type: 'system',
  errno: 'ETIMEDOUT',
  code: 'ETIMEDOUT'
}