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

Exception after "checking for new navigation data" #135

Closed
neilenns opened this issue May 8, 2023 · 6 comments
Closed

Exception after "checking for new navigation data" #135

neilenns opened this issue May 8, 2023 · 6 comments

Comments

@neilenns
Copy link
Contributor

neilenns commented May 8, 2023

This is happing to a fellow controller. On launch of vATIS he gets the "checking for new navigation data" message and then the app crashes:

System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)

Log file contents:

2023-05-08 10:40:46.602 -07:00 [INF] vATIS version 4.0.0-beta.12 starting up
2023-05-08 10:40:48.140 -07:00 [INF] Downloading latest version information
2023-05-08 10:40:59.968 -07:00 [INF] Available version is 4.0.0.12, executing version is 4.0.0.12
2023-05-08 10:41:00.203 -07:00 [INF] Downloading airport navdata from https://github.com/vatis-project/navdata/releases/download/v1.0.0/airports.json

We've tried uninstalling and nuking the vATIS-4.0 folder from %localappdata% on his machine then reinstalling beta 12 but the exception still happens.

@justinshannon
Copy link
Contributor

Is that the entirety of the exception stack trace?

@neilenns
Copy link
Contributor Author

neilenns commented May 9, 2023 via email

@neilenns
Copy link
Contributor Author

neilenns commented May 9, 2023

He says yes, the rest was just version info for the assemblies, but will get me the entire thing in a day or two (he's away from his computer for the next few days).

@justinshannon
Copy link
Contributor

In beta 13, the HttpClient is forced to use IPv4, which will hopefully fix this issue.

I'm theorizing that the user is getting the TaskCanceledException because the http request is timing out. I recall some vPilot users getting a similar error when the new http auth method was introduced; restarting the computer or router was a temporary solution for some users. The solution that was implemented in vPilot was to make the http request to the auth token endpoint using the IPv4 address.

@neilenns
Copy link
Contributor Author

I let him know. He likely won't be able to try it for another day or so, but I'll report back once I hear results.

@neilenns
Copy link
Contributor Author

Seems like that change fixed it:

Happy to report vATIS seems to work fine with beta 13!

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

2 participants