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

Network error on getFlags [TypeError: Network request failed] #47

Open
erhanersoz opened this issue Aug 5, 2024 · 2 comments
Open

Network error on getFlags [TypeError: Network request failed] #47

erhanersoz opened this issue Aug 5, 2024 · 2 comments

Comments

@erhanersoz
Copy link

I am getting network error on fetch flags. When I change serverUrl(commented out lines on my implementation) into http It works perfectly. I need help on this issue.

            amplitude.init(DotEnv.AMPLITUDE_API_KEY);
            this.experiment = Experiment.initializeWithAmplitudeAnalytics(DotEnv.AMPLITUDE_API_KEY, {
                debug: true,
                fetchOnStart: true,
                pollOnStart: false,
                // flagsServerUrl: 'http://flag.lab.amplitude.com',
                // serverUrl: 'http://api.lab.amplitude.com',
            });

            await this.experiment.start();
issue

Device: Xiaomi Redmi Note 9
Android Version: 12

"@amplitude/analytics-react-native": "1.3.2"
"@amplitude/experiment-react-native-client": "1.5.1"
"@react-native-async-storage/async-storage": "1.15.8"
"react-native": "0.71.13"

@tyiuhc
Copy link
Contributor

tyiuhc commented Aug 5, 2024

Hi @erhanersoz, many thanks for raising this issue. Are you still seeing this error/are you able to reproduce it? If so, are you able to monitor network traffic for a more specific error?

@techgocodingnow
Copy link

@tyiuhc I got the same issue

also, it might be out of this topic, but may be related

when using experiment variant method, will it be reactive when feature flag value changes?

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

3 participants