question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase Dynamic Links Service: The remote name could not be resolved: 'firebasedynamiclinks-ipv6.googleapis.com'

See original GitHub issue

Hi, I was using Firebase Dynamic Links API, but I encountered an issue.

Code:

var firebaseDynamicLinksService = new FirebaseDynamicLinksService(
    new BaseClientService.Initializer { ApiKey = ApiKey });

var LongDynamicLink = FDL_URL + "/?link=" + link;
var createShortDynamicLinkRequest = new CreateShortDynamicLinkRequest() { LongDynamicLink = LongDynamicLink, Suffix = new Suffix() { Option = "SHORT" } };

var request = firebaseDynamicLinksService.ShortLinks.Create(createShortDynamicLinkRequest);
var response = request.Execute(); // Throw exception

Exception:

{System.Net.WebException: The remote name could not be resolved: 'firebasedynamiclinks-ipv6.googleapis.com'
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)}

But I can successfully post and generate a shortened link manually by:

var json = "{\"longDynamicLink\":\"" + FDL_URL + "/?link=https://youtube.com\",\"suffix\":{\"option\":\"SHORT\"}}";
var response = await firebaseDynamicLinksService.HttpClient.PostAsync("https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=" + ApiKey, new StringContent(json, Encoding.UTF8, "application/json"));

When I change the requestUri to “https://firebasedynamiclinks-ipv6.googleapis.com/”, I get the same error.

var response = await firebaseDynamicLinksService.HttpClient.PostAsync("https://firebasedynamiclinks-ipv6.googleapis.com/v1/shortLinks?key=" + ApiKey, new StringContent(json, Encoding.UTF8, "application/json"));

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
chrisdunelmcommented, Apr 19, 2018

@yurik94, @jackson777 Thanks for showing a workaround. This has now been internally acknowledged as a configuration error. The correct hostname should be (as you guessed) firebasedynamiclinks.googleapis.com. Hopefully it’ll be fixed soon.

0reactions
chrisdunelmcommented, Apr 30, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic Links Deprecation FAQ | Firebase - Google
Note: Firebase Dynamic Links is deprecated and should not be used in new projects. The service will shut down on August 25, 2025....
Read more >
SDK attempts to connect to firebasedynamiclinks-ipv6. ...
Firebase Dynamic Links attempts to connect to an IPv6 domain that it's not capable of connecting to (firebasedynamiclinks-ipv6.googleapis.com).
Read more >
Why am I getting a server error from the Firebase dynamic ...
I'm trying to create a managed dynamic link using the Firebase API and the ... we don't highlight "name" - can you see...
Read more >
Firebase Dynamic Links shows Warning for deleted and ...
1 Answer 1 · Access the project on the Cloud console (console.cloud.google.com) · Go to APIs and Services > Credentials · Identify the...
Read more >
Firebase Dynamic Links API – Marketplace
Programmatically creates and manages Firebase Dynamic Links. Enable. Try this API ... Category: Firebase; Service name: firebasedynamiclinks.googleapis.com ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found