Firebase Dynamic Links Service: The remote name could not be resolved: 'firebasedynamiclinks-ipv6.googleapis.com'
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.This is fixed in the latest nuget release: https://www.nuget.org/packages/Google.Apis.FirebaseDynamicLinks.v1/1.33.0.1210 The correct hostname can be seen in firebasedynamiclinks_v1.json and Google.Apis.FirebaseDynamicLinks.v1.cs.