Skip to content

[Question] How can I test the lambda? #22

Open
@shinayser

Description

@shinayser

I am, not just unit testing, but the app itself. When I try to run it I get the error:

Unhandled exception:
NoSuchMethodError: The getter 'requestId' was called on null.
Receiver: null
Tried calling: requestId
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      Runtime.invoke (package:aws_lambda_dart_runtime/runtime/runtime.dart:117:28)
<asynchronous suspension>
#2      main (file:///C:/Users/shina/Desenvolvimento/dart_projects/lambda_test/bin/lambda_test.dart:62:7)
#3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

There is a way to run it (for testing purposes) locally, without having to upload the zip file to aws?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions