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

IOS Issue , SocketException . #30

Closed
Peet-A opened this issue Mar 7, 2021 · 8 comments
Closed

IOS Issue , SocketException . #30

Peet-A opened this issue Mar 7, 2021 · 8 comments

Comments

@Peet-A
Copy link

Peet-A commented Mar 7, 2021

hello all. ,
i am using the ntp function , to get the real time ,
await NTP.now();

and i got this exception on ios device ,
SocketException: OS Error: Connection reset by peer, errno = 54, address = dns.google.com, port = 53945

any idea what is wrong !!

@oonid
Copy link
Contributor

oonid commented Mar 7, 2021

hi @Peet-A
have you tried to use the previous version 1.0.7?

@Peet-A
Copy link
Author

Peet-A commented Mar 8, 2021

hi @Peet-A
have you tried to use the previous version 1.0.7?

thanks @oonid , i did as you said and it's working now , the only thing i did is to remove the little caret syntax (^) :

ntp:^1.0.7 to ntp: 1.0.7

@oonid
Copy link
Contributor

oonid commented Mar 8, 2021

so I think the problem still related to the new DoH feature (on the latest version).
will wait for the response from @knezzz
going to remove all the DoH, or mix the implementation with InternetAddress.lookup

@knezzz
Copy link
Owner

knezzz commented Mar 8, 2021

Yeah that is most likely due to DoH. I think best thing would be to remove DoH and revert back to InternetAddress.lookup, since DoH didn't really solve any problems for the lib (still not working on the web), it only created more issues.

@shabeenabarde
Copy link

This package gives me the correct time when I am using Wi-Fi, but when i am using cellular data, it gives me the error of SocketException: OS Error: Connection timed out, errno = 110, address = dns.google.com, port = 44198. Why is that?

@knezzz
Copy link
Owner

knezzz commented Apr 20, 2021

@shabeenabarde Not sure, could you paste the whole log here?

@shabeenabarde
Copy link

@shabeenabarde Not sure, could you paste the whole log here?

Weird.. today I am not getting the error. I don't know if it's because I deleted the package from the folder and downgraded to version 1.0.7. If the error persists again, I shall let you know.

@knezzz
Copy link
Owner

knezzz commented May 24, 2021

This should be fixed with 2.0.0. Closing this, if this is still happening feel free to reopen

@knezzz knezzz closed this as completed May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants