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

An internal error occurred: Status code failure 404 #825

Open
ns-wahed opened this issue May 5, 2023 · 1 comment
Open

An internal error occurred: Status code failure 404 #825

ns-wahed opened this issue May 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ns-wahed
Copy link

ns-wahed commented May 5, 2023

Hi Team,
We are trying to add a @segment/analytics-react-native-plugin-appsflyer as a plugin, and whenever we are using the track function segmentClient it throws an error of Status code 404, is anyone facing the same?

Here's the code we are using to add the plugin:

import {createClient, SegmentError} from '@segment/analytics-react-native';
import {AppsflyerPlugin} from '@segment/analytics-react-native-plugin-appsflyer';

const errorHandler = (error: SegmentError) => {
  console.info('ERROR ON SEGMENT CLIENT  ------  ', error);
};

const segmentClient = createClient({
  writeKey: SEGMENT_KEY,
  trackAppLifecycleEvents: true,
  autoAddSegmentDestination: true,
  errorHandler
});
const plugin = new AppsflyerPlugin();
segmentClient.add({plugin});
"@segment/analytics-react-native": "^2.14.0",
"@segment/analytics-react-native-plugin-appsflyer": "^0.5.2",
"@segment/sovran-react-native": "^1.0.2",
"react": "18.0.0",
"react-native": "0.69.8",

Screenshot 2023-05-05 at 8 09 18 PM

@ns-wahed ns-wahed added the bug Something isn't working label May 5, 2023
@alanjcharles
Copy link
Contributor

Hi @ns-wahed I've been trying to track this down for a few weeks. I get this error when I use Appsflyer in our example and in a standalone hello-world app just using the Appsflyer SDK without Segment. The only place I could get it to work was with the actual AppsFlyer react native example in their repository. It seems to me they've changed something on their end and it's not apparent as to what that could be. I would recommend reaching out to them, or trying to just initialize the Appsflyer SDK outside of Segment to see if your experience is the same. Please let me know, at this point there's not much we can do on our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants