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

fatal error: Transfer completed, but there's no current request. NSURLSession #31

Open
andrew804 opened this issue Feb 22, 2017 · 2 comments

Comments

@andrew804
Copy link

andrew804 commented Feb 22, 2017

When running in Linux with Swift version 3.0.2 after receiving a few requests to my Vapor server (perhaps in quick succession) I get the following fatal error:

fatal error: Transfer completed, but there's no current request.: file Foundation/NSURLSession/NSURLSessionTask.swift, line 794

Thanks to @loganwright I narrowed the problem down to authenticating the incoming request with Turnstile Web. The issue only happens on Linux not macOS but is quite sporadic. The error occurs when Turnstile makes the request to Facebook.

@edjiang
Copy link
Contributor

edjiang commented Mar 1, 2017

This sounds like a Foundation bug... might want to report it at bugs.swift.org if you can find a way to reproduce it.

Try making requests with this HTTP Client: https://github.com/stormpath/Turnstile/blob/master/Sources/TurnstileWeb/URLSession+Turnstile.swift#L16 and see if you can reproduce the bug independent of Vapor/Turnstile.

@hayesbiz1
Copy link

Seeing this as well.

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

3 participants