-
Notifications
You must be signed in to change notification settings - Fork 25
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
getNtpOffset fails on web with “Unsupported operation: InternetAddress.lookup” #15
Comments
Thanks for reporting the issue :D Looks like I'll have to find better solution for this. |
Thanks! I'm a bit confused about the status of this issue now :) Was 0f0d1a4 supposed to work around I've updated to the new version and now |
It was supposed to fix it yeah. There was package I found |
Interested in support for web too :) |
Okay, will look up how can I make it work on web as well :) |
Hello. How is it going? Do you need a hand? |
Hey @itschrono. Sure if you have time I can assign it to you. |
Ok why not. I need it anyway 😊
De : Luka Knezic <notifications@github.com>
Envoyé : jeudi 17 septembre 2020 15:58
À : knezzz/ntp <ntp@noreply.github.com>
Cc : Antoine BELLAY <antoine@itschrono.com>; Mention <mention@noreply.github.com>
Objet : Re: [knezzz/ntp] getNtpOffset fails on web with “Unsupported operation: InternetAddress.lookup” (#15)
Hey @itschrono<https://github.com/itschrono>. Sure if you have time I can assign it to you.
I didn't have much luck with universal_io.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AF75A7WJ2GG75KR6SGSVIBLSGIIVLANCNFSM4M4LL6QA>.
|
Hi. when can we expect an update on this? |
Hello Nelson. I don't have much time right now but I'll be in touch soon I hope...
Cordialement
Best Regards,
Antoine BELLAY
Software Manager
23 rue du Comté de Montbéliard - 25660 Montfaucon – FRANCE
tél: +33(0) 3 81 57 52 09
www.itschrono.com<http://www.itschrono.com> - www.its-events.com<http://www.its-events.com>
…________________________________
From: Nelson John <notifications@github.com>
Sent: Tuesday, September 22, 2020 9:31:55 PM
To: knezzz/ntp <ntp@noreply.github.com>
Cc: Antoine BELLAY <antoine@itschrono.com>; Mention <mention@noreply.github.com>
Subject: Re: [knezzz/ntp] getNtpOffset fails on web with “Unsupported operation: InternetAddress.lookup” (#15)
Hi. when can we expect an update on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AF75A7T2VEUU5IFBLSIWD53SHD3SXANCNFSM4M4LL6QA>.
|
Thanks I appreciate it. meanwhile I'll try to come up with something, if I do I'll ping here. |
Hello, dgram and raw socket are a no go in web browser. The only options are: http(s) 1.1 or websocket. This means it is not going to work with this ntp protocol. The api can still be the same if the lookUpAddress support both connection types. |
Any news about fix? |
Hello. I did my own stuff. Sorry guys.
Cordialement
Best Regards,
Antoine BELLAY
Software Manager
23 rue du Comté de Montbéliard - 25660 Montfaucon – FRANCE
tél: +33(0) 3 81 57 52 09
www.itschrono.com<http://www.itschrono.com> - www.its-events.com<http://www.its-events.com>
…________________________________
From: Addel <notifications@github.com>
Sent: Thursday, October 1, 2020 4:42:07 PM
To: knezzz/ntp <ntp@noreply.github.com>
Cc: Antoine BELLAY <antoine@itschrono.com>; Assign <assign@noreply.github.com>
Subject: Re: [knezzz/ntp] getNtpOffset fails on web with “Unsupported operation: InternetAddress.lookup” (#15)
Any news about fix?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AF75A7TBW66HU4GCADI46YTSISIL7ANCNFSM4M4LL6QA>.
|
@itschrono How did you get host address (The |
Hello. I use a web socket and a custom protocole which do the standard t1, t2, t1p, t2p compute.
Cordialement
Best Regards,
Antoine BELLAY
Software Manager
23 rue du Comté de Montbéliard - 25660 Montfaucon – FRANCE
tél: +33(0) 3 81 57 52 09
www.itschrono.com<http://www.itschrono.com> - www.its-events.com<http://www.its-events.com>
…________________________________
From: Luka Knezic <notifications@github.com>
Sent: Saturday, October 3, 2020 1:32:20 PM
To: knezzz/ntp <ntp@noreply.github.com>
Cc: Antoine BELLAY <antoine@itschrono.com>; Mention <mention@noreply.github.com>
Subject: Re: [knezzz/ntp] getNtpOffset fails on web with “Unsupported operation: InternetAddress.lookup” (#15)
@itschrono<https://github.com/itschrono> How did you get host address (The InternetAddress.lookup part that is failing here)? Can something like that be implemented here?
I was looking today a bit at other solutions but coundn't find anything that works 😞
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AF75A7UY7QOSQDG7SPDA6HDSI4DUJANCNFSM4M4LL6QA>.
|
hi @knezzz this is one example: thoughts? |
Hi @oonid, sorry for not getting back sooner, I wanted to reply when I test this but I still didn't have a chance to try it. Looks promising, and that will solve the web issue for sure so I will definitely try it. Thanks for suggestion 😄 |
I have the exactly same error as @ma-ruz posted. [√] Flutter (Channel stable, 2.0.2, on Microsoft Windows [Version 10.0.19041.804], locale de-DE) opened a new issue #32 |
It seems this error still exists |
Does ntp package support web? Web isn't explicitly mentioned in the list of supported platforms at https://pub.dev/packages/ntp, but I was under impression that the package is written in native dart and should work on all platforms.
However when I try to call
getNtpOffset
from a web app, it fails with “Unsupported operation: InternetAddress.lookup”.Tested in Firefox and Chrome, in a debug build running on local host and in a release build deployed to Firebase hosting. Using Dart 2.8.1, Flutter 1.17.0-3.4.pre, ntp 1.0.6.
The text was updated successfully, but these errors were encountered: