firebase_dynamic_links: NSURLSession/NSURLConnection HTTP load failed in generating short link by C++ api in XCode

208 views
Skip to first unread message

Hoang Doanh

unread,
Apr 21, 2018, 11:36:08 AM4/21/18
to Firebase Google Group
Hi all

After successful generation of long link. I tried to generate short link as the following:

      dynamic_links::DynamicLinkOptions options;

       options.path_length = firebase::dynamic_links::kPathLengthShort;

            

       firebase::Future<dynamic_links::GeneratedDynamicLink> link_future =

       dynamic_links::GetShortLink(long_link.url.c_str(), options);

       WaitForAndShowGeneratedLink(link_future, "Generate short from long link”);


Actually this code I copied from sample code ( iOS - Dynamic link - C++ api ). But I found following error:

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806


No short link was generated.


Thank you for your help

Kind regards,

Hoang Doanh

Stewart Miles

unread,
Apr 23, 2018, 3:54:45 PM4/23/18
to Firebase Google Group
Does the same problem occur when trying our sample code?

If the sample doesn't reproduce the error I recommend seeing whether you're messing with the SSL cert store in your application as that could be causing cert validation to fail when we open a connection to the dynamic links backend.

Cheers,
Stewart



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9dd7f86e-2904-46db-a937-1ff7a5d77d43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hoang Doanh

unread,
Apr 23, 2018, 11:22:44 PM4/23/18
to fireba...@googlegroups.com
The sample code didn't reproduce that error.

"I recommend seeing whether you're messing with the SSL cert store" - > Could you please guide me how to define whether I am messing with SSL Cert store ?

Thank you very much,
Doanh

On Tue, Apr 24, 2018 at 2:54 AM, 'Stewart Miles' via Firebase Google Group <fireba...@googlegroups.com> wrote:
Does the same problem occur when trying our sample code?

If the sample doesn't reproduce the error I recommend seeing whether you're messing with the SSL cert store in your application as that could be causing cert validation to fail when we open a connection to the dynamic links backend.

Cheers,
Stewart


On Sat, Apr 21, 2018 at 8:35 AM Hoang Doanh <hoang...@gmail.com> wrote:
Hi all

After successful generation of long link. I tried to generate short link as the following:

      dynamic_links::DynamicLinkOptions options;

       options.path_length = firebase::dynamic_links::kPathLengthShort;

            

       firebase::Future<dynamic_links::GeneratedDynamicLink> link_future =

       dynamic_links::GetShortLink(long_link.url.c_str(), options);

       WaitForAndShowGeneratedLink(link_future, "Generate short from long link”);


Actually this code I copied from sample code ( iOS - Dynamic link - C++ api ). But I found following error:

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806


No short link was generated.


Thank you for your help

Kind regards,

Hoang Doanh

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9dd7f86e-2904-46db-a937-1ff7a5d77d43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Hoang Doanh

unread,
Apr 24, 2018, 10:16:54 AM4/24/18
to fireba...@googlegroups.com
This morning , I have seen new error on this(after change of DNS of device to 8.8.8.8

2018-04-24 10:48:25.471531+0700 hdDynamicLink2[253:8902] Generate short from long link...

2018-04-24 10:48:46.025089+0700 hdDynamicLink2[253:9017] [] nw_coretls_read_one_record tls_handshake_process: [-9802]

2018-04-24 10:48:46.364945+0700 hdDynamicLink2[253:9017] [] nw_coretls_read_one_record tls_handshake_process: [-9802]

2018-04-24 10:48:46.366817+0700 hdDynamicLink2[253:8971] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)


I think the reason related to SSL for sure,


I am still trying to resolve it !


Cheers,

Doanh


Reply all
Reply to author
Forward
0 new messages