Giter VIP home page Giter VIP logo

Comments (7)

ameech avatar ameech commented on May 25, 2024

@cristim were you able to figure out a fix for this?

from archive_aws-lambda-go-net.

cristim avatar cristim commented on May 25, 2024

@ameech I had this fixed with help from @fsenart, I just don't remember what was wrong there

from archive_aws-lambda-go-net.

awsong avatar awsong commented on May 25, 2024

I'm having the exact same problem now. With latest shim and net. Wondering what the fix is.

from archive_aws-lambda-go-net.

awsong avatar awsong commented on May 25, 2024

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.

fsenart avatar fsenart commented on May 25, 2024

@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.

hasJerry avatar hasJerry commented on May 25, 2024

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.

fsenart avatar fsenart commented on May 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.