adtrace / adtrace_sdk_web

This is the Web SDK of
https://adtrace.io/
MIT License
5 stars 4 forks source link

Adtrace SDK is disabled, can not track event #17

Open ealimardaniii opened 3 weeks ago

ealimardaniii commented 3 weeks ago

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 commented 3 weeks ago

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

ealimardaniii commented 3 weeks ago

@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 commented 3 weeks ago

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