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

Random crash #9

Open
valeriomazzeo opened this issue Jun 13, 2019 · 2 comments
Open

Random crash #9

valeriomazzeo opened this issue Jun 13, 2019 · 2 comments

Comments

@valeriomazzeo
Copy link

valeriomazzeo commented Jun 13, 2019

This is a lambda function with proxy integration connected to an API Gateway.
It randomly crashes with this log:

18:33:58
START RequestId: d78628da-a0c9-4e39-be97-5c0a604dadf9 Version: $LATEST
18:33:58
Fatal error: Error raised at top level: AWSLambdaSwift.RuntimeError.endpointError("The operation could not be completed"): file /home/buildnode/jenkins/workspace/oss-swift-5.0-package-linux-ubuntu-18_04/swift/stdlib/public/core/ErrorType.swift, line 200
18:33:58
Current stack trace:
18:33:58
0 libswiftCore.so 0x00007fefdf1387a0 _swift_stdlib_reportFatalErrorInFile + 115
18:33:58
1 libswiftCore.so 0x00007fefdf0739cc <unavailable> + 3463628
18:33:58
2 libswiftCore.so 0x00007fefdf073abe <unavailable> + 3463870
18:33:58
3 libswiftCore.so 0x00007fefdee6f31a <unavailable> + 1348378
18:33:58
4 libswiftCore.so 0x00007fefdf047ab2 <unavailable> + 3283634
18:33:58
5 libswiftCore.so 0x00007fefdeec4d6e <unavailable> + 1699182
18:33:58
6 myFunc 0x00007fefdfd75f80 <unavailable> + 335744
18:33:58
7 libc.so.6 0x00007fefdd7eeab0 __libc_start_main + 231
18:33:58
8 myFunc 0x00007fefdfd34e5a <unavailable> + 69210

It seems to have something to do with URLSession on Linux. I have tried to print more info, but all I could get was: Foundation.URLError(_nsError: The operation could not be completed.

Also, both HTTPResponse and data are empty.

@tonisuter thoughts?

Andrea-Scuderi pushed a commit to Andrea-Scuderi/aws-lambda-swift that referenced this issue Aug 3, 2019
@Andrea-Scuderi
Copy link

@tonisuter I added a PR to fix this

@Andrea-Scuderi
Copy link

Andrea-Scuderi commented Aug 3, 2019

I found the issue, it is related to the URLSessionConfiguration timeoutIntervalForRequest.

Andrea-Scuderi pushed a commit to Andrea-Scuderi/aws-lambda-swift that referenced this issue Aug 4, 2019
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