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

The SDK appears to attempt connections to 127.0.0.1 instead of the Amplitude endpoint (api2.amplitude.com). #209

Closed
Arjun-Ingole opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Arjun-Ingole
Copy link

Expected Behavior

The Amplitude Flutter SDK should connect to the correct API endpoint (https://api2.amplitude.com) and upload events without errors.

Current Behavior

The SDK attempts to connect to 127.0.0.1:443, resulting in a java.net.ConnectException. This prevents events from being uploaded successfully.

E/Amplitude(12759): Error when uploading event: Failed to connect to api2.amplitude.com/127.0.0.1:443 E/Amplitude(12759): Stack trace: java.net.ConnectException: Failed to connect to api2.amplitude.com/127.0.0.1:443

Possible Solution

Steps to Reproduce

  1. Set up the Amplitude Flutter SDK using the following configuration:
_amplitude = Amplitude(
  Configuration(
    apiKey: '<valid_api_key>',
  ),
);
  1. Initialize the Amplitude service and attempt to track an event.
  2. Observe the connection error in logs.
  3. No events appear in the Amplitude dashboard.

Environment

  • SDK Version: 4.0.0.5 Beta
  • Flutter Version: 3.24.5
  • Device: Google Pixel 6 Pro
  • Device OS and Version: Android 12
@Arjun-Ingole Arjun-Ingole added the bug Something isn't working label Nov 26, 2024
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

1 participant