segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
360 stars 185 forks source link

WRITE_KEY giving 404 when fetching settings #873

Closed SwetaTanwar closed 1 year ago

SwetaTanwar commented 1 year ago

The WRITE_KEY given on the configuration page of the Segment React Native Source is giving 404 when fetching settings.

Steps to reproduce

// track events segmentClient.track(eventName, eventProperties);


- On running the app, will get warning from Segment Logs: `An internal error occurred` and `Could not receive settings from Segment. Device mode destinations will be ignored unless you specify default settings in the client config.`

**Expected behavior**
Fetch settings API should return the required settings

**Actual behavior**
Fetch settings API returning 404

**Screenshots**

<img width="912" alt="error-404" src="https://github.com/segmentio/analytics-react-native/assets/19969451/ec5011cf-5d39-4672-ac0f-a317b23fac3a">