Comments (7)
@cristim were you able to figure out a fix for this?
from archive_aws-lambda-go-net.
@ameech I had this fixed with help from @fsenart, I just don't remember what was wrong there
from archive_aws-lambda-go-net.
I'm having the exact same problem now. With latest shim and net. Wondering what the fix is.
from archive_aws-lambda-go-net.
My error message:
12:14:11 START RequestId: 9255bbdc-87fc-11e7-a281-9bd5720e6d21 Version: $LATEST 12:14:11 panic: runtime error: invalid memory address or nil pointer dereference 12:14:11 [signal SIGSEGV: segmentation violation code=0x1 addr=0x70 pc=0x7fdc73396bf0] 12:14:11 goroutine 17 [running, locked to thread]: 12:14:11 github.com/eawsy/aws-lambda-go-net/service/lambda/runtime/net/apigatewayproxy.(*Server).Handle(0xc4200ec840, 0xc42001a400, 0x36, 0x40, 0xc420068280, 0x0, 0xc4200bf958, 0x7fdc7956ed0c) 12:14:11 /public/development/go/src/github.com/eawsy/aws-lambda-go-net/service/lambda/runtime/net/apigatewayproxy/server.go:115 +0xef0 12:14:11 github.com/eawsy/aws-lambda-go-net/service/lambda/runtime/net/apigatewayproxy.(*Server).Handle-fm(0xc42001a400, 0x36, 0x40, 0xc420068280, 0x0, 0x0, 0x0) github.com/eawsy/aws-lambda-go-net/service/lambda/runtime/net/apigatewayproxy.(*Server).Handle-fm(0xc42001a400, 0x36, 0x40, 0xc420068280, 0x0, 0x0, 0x0) 12:14:11 /naz/public/development/lambda/handler.go:36 +0x54 12:14:11 reflect.Value.call(0x7fdc73644ae0, 0x7fdc737de440, 0x193, 0x7fdc7962f078, 0x4, 0xc4200bfe10, 0x2, 0x2, 0x7fdc798619c0, 0x7fdc79889368, ...) 12:14:11 /usr/local/go/src/reflect/value.go:434 +0x921 12:14:11 reflect.Value.Call(0x7fdc73644ae0, 0x7fdc737de440, 0x193, 0xc4200bfe10, 0x2, 0x2, 0xc4200682f8, 0x193, 0x7fdc79585b48) 12:14:11 /usr/local/go/src/reflect/value.go:302 +0xa6 12:14:11 main.handle(0x7fdc7a9fffb4, 0x129ec54, 0x129ef74, 0xc4200bfeb0, 0xc4200bfeb8, 0x0) 12:14:11 /build/src/runtime.go:140 +0x4e1 12:14:11 main._cgoexpwrap_dd780bcacc70_handle(0x7fdc7a9fffb4, 0x129ec54, 0x129ef74, 0x0, 0x0, 0x0) 12:14:11 _/build/src/_obj/_cgo_gotypes.go:127 +0x9a 12:14:11 END RequestId: 9255bbdc-87fc-11e7-a281-9bd5720e6d21 12:14:11 REPORT RequestId: 9255bbdc-87fc-11e7-a281-9bd5720e6d21 Duration: 14.04 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 22 MB 12:14:11 RequestId: 9255bbdc-87fc-11e7-a281-9bd5720e6d21 Process exited before completing request
from archive_aws-lambda-go-net.
@awsong can you please verify that you haven't more than 8 exported functions. This is a known limitations with Go 1.8. We will update the shim with the new Go 1.9 in the coming days.
from archive_aws-lambda-go-net.
I'm getting the same result. Was able to run successfully with the base shim, moved to go-net to get APIGateway compatibility.
from archive_aws-lambda-go-net.
@hasJerry we've recently update the shim to go 1.9 and this kind of problem should not happen. If you encounter any problem after updating your docker image and your makefile please report.
from archive_aws-lambda-go-net.
Related Issues (9)
- Why init not main? HOT 3
- Cut a release? HOT 2
- Possibly obvious question about concurrency of the server HOT 4
- api badge points to confusing place HOT 2
- http.DetectContentType fails to detect posted JPEG upon lambda HOT 1
- 'Process exited before completing request' HOT 7
- redirect not working? HOT 6
- Why listen and serve instead of handling requests in-memory? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archive_aws-lambda-go-net.