Hi everyone,
I’m running into an App Bridge behavior that’s confusing during local development and wanted to check if this is expected or a known issue.
What I’m doing
-
I have a Shopify app based on shopify remix template
-
During local development, I blocked a specific API endpoint using Chrome DevTools → Network → Block request URL
http://localhost:4000/app/cornercart/config/sync -
I then triggered the code path that fetches this endpoint.
What happens
Instead of receiving a clear network error, the app throws:
TypeError: Failed to fetch
at app-bridge.js
at fetchReqWrapper(...)
at triggerSyncMetaObjectAPI(...)
The error originates from inside app-bridge.js (screenshot below).
What I expected
I was expecting either:
- A clearly identifiable network error that I can catch and handle in my app, or
- A normalized App Bridge error (e.g. network/blocked request) instead of a generic
TypeError: Failed to fetch.
At the moment, it’s hard to differentiate between:
- Network blocking
- CORS issues
- Server down
- Manual DevTools request blocking
Why this matters
This makes debugging local/dev issues harder and also complicates error handling logic in apps that rely on App Bridge–wrapped fetch calls.
Questions
- Is this expected behavior from App Bridge?
- Is there a recommended way to detect network-level failures distinctly?
- Has anyone else run into this while debugging locally?
