-
Notifications
You must be signed in to change notification settings - Fork 125
Fatal Error: NIOAny.swift, line 101 #138
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
Comments
I was able to make my Code work with following steps for a workaround -- if somebody needs a quick solution
BTW: compiling the newest libcurl4 with swift:latest didn't work with SwiftyRequest as well |
ping @artemredkin |
@StrangeDays hi, I'm having difficulties reproducing the crash, here is what I was trying to run: import SwiftyRequest
import Dispatch
let request = RestRequest(method: .get, url: "http://google.com/")
let semaphore = DispatchSemaphore(value: 0)
request.responseData { result in
switch result {
case .success(let response):
print(response.status)
case .failure(let error):
print(error)
}
semaphore.signal()
}
semaphore.wait() running on:
Does this issue reproduce always or intermittenly? Can you show me what your workaround was about? It strange that using libcurl3 helped, we are not relying on it at all. |
@artemredkin sry 4 responding so l8. The first thing i notice is the using of DispatchSemaphore, which I don't use. |
@artemredkin -- finally i got time ;-) |
@StrangeDays glad to hear that. But I would prefer to reproduce this this crash so we can add a test to prevent this from happening. Should it be the same example as earlier but with an IP address? Is it just local host or any IP? Does it have to be https? Thank you! |
@StrangeDays / @artemredkin any updates here or can this be closed? |
I was unable to reproduce the issue unfortunately |
happy to close because @StrangeDays says it's fixed :) |
Uh oh!
There was an error while loading. Please reload this page.
!!! this is a transferred, original issue: apple/swift-nio#1270, original reporter @StrangeDays !!!
Expected behavior
Actual behavior
Fatal error: tried to decode as type Request but found Request with contents other(AsyncHTTPClient.HTTPClient.Request(method:
Fatal error: tried to decode as type ByteBuffer but found IOData with contents other(IOData
Steps to reproduce
Run your Server on Linux via Docker (swift:latest, ...)
If possible, minimal yet complete reproducer code (or URL to code)
Pretty simple RestRequest (SwiftyRequest) with responseObject and responseData
!!! issue transferred from apple/swift-nio#1270, original reporter @StrangeDays !!!
SwiftNIO version/commit hash
2.10.1
Swift & OS version (output of
swift --version && uname -a
)Swift version 5.1 (swift-5.1.2-RELEASE)
Target: x86_64-unknown-linux-gnu
Linux e965e14a2285 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: