Skip to content

Bug: Analytics SDK: TypeError: Failed to fetch #1804

@PaulRBerg

Description

@PaulRBerg

Describe the bug

Ad blockers trigger a console error

Steps

  1. Use an ad blocker
  2. Load the Coinbase Wallet SDK
  3. Get this console error:

Text:

VM1309:1  POST https://cca-lite.coinbase.com/metrics net::ERR_BLOCKED_BY_CLIENT
installHook.js:1 Analytics SDK: TypeError: Failed to fetch
    at _t (<anonymous>:1:64025)
    at <anonymous>:1:68106 {context: 'AnalyticsSDKApiError'}

Expected behavior

SDK users shouldn't see this error in their console, even if they are using as blockers.

You should handle this error internally and not bubble it up.

Version

v4.3.2

Desktop

Google Chrome v142.0.7444.60

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions