awslabs / awslabs/aws-lambda-dart-runtime

[Question] How can I test the lambda?

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
152
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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)

#2 main (file:///C:/Users/shina/Desenvolvimento/dart_projects/lambda_test/bin/lambda_test.dart:62:7)
#3 _startIsolate. (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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.