Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adtrace SDK is disabled, can not track event #17

Open
ealimardaniii opened this issue Sep 7, 2024 · 3 comments
Open

Adtrace SDK is disabled, can not track event #17

ealimardaniii opened this issue Sep 7, 2024 · 3 comments
Assignees

Comments

@ealimardaniii
Copy link

I got error "Adtrace SDK is disabled, can not track event"

import Adtrace from "web-adtrace";

 Adtrace.initSdk({
    appToken: token,
    environment: "sandbox",
  });
 Adtrace.restart();

 Adtrace.trackEvent({
    eventToken,
  })

we are using React native web
react-native: "0.75.2"
react-native-web: "0.19.0"

@namini40
Copy link
Collaborator

namini40 commented Sep 7, 2024

it will be great if you can provide SDK logs @ealimardaniii
just remove Adtrace.restart(); part , clear local storage and rerun with current configs

@namini40 namini40 self-assigned this Sep 7, 2024
@ealimardaniii
Copy link
Author

@namini40 I changed it but unfortunately i got same error

import Adtrace from "web-adtrace";

  Adtrace.initSdk({
    appToken: token,
    environment: "sandbox",
  });

  Adtrace.trackEvent({
    eventToken,
  });

@namini40
Copy link
Collaborator

sorry for a bit delay
if there is any other logs please share those too. (what ever comes from Adtrace SDK)
make sure to set log level to verbose
event with this error try again sending events to get any log from sdk.
clear local storage for each test

the error indicates that sdk is disabled or set to offline mode which prevents it from sending requests. make sure to consider any other calls to sdk methods.

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants