aws / aws/aws-lambda-dotnet

During start command got bug error

Open
#2,523 0 comments 0 reactions 0 assignees View on GitHub
bug p2
Dominant language
C#
Stars
1.7k
Forks
503
Avg merge
1d 5h
Merged PRs (30d)
18

Description

### Describe the bug

PS D:\Delete_Now\LabNew1\MyLambda> dotnet lambda-test-tool start
Unhandled exception.
This is a bug.
Please copy the stack trace below and file a bug at https://github.com/aws/aws-lambda-dotnet.
At least one of the following parameters must be set: --lambda-emulator-port, --api-gateway-emulator-port, --api-gateway-emulator-https-port, --sqs-eventsource-config or --dynamodbstreams-eventsource-config
at Amazon.Lambda.TestTool.Commands.RunCommand.ExecuteAsync(CommandContext context, RunCommandSettings settings, CancellationTokenSource cancellationTokenSource) in C:\build\Tools\LambdaTestTool-v2\src\Amazon.Lambda.TestTool\Commands\RunCommand.cs:line 45

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Expected Behavior

Should work correctly or handled here

### Current Behavior

Getting exception

### Reproduction Steps

use command -dotnet lambda-test-tool start

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### AWS .NET SDK and/or Package version used

NA

### Targeted .NET Platform

.NET 10

### Operating System and version

Windows 10

Contributor guide

Open the contributing guide

Research direction

Start with Amazon.Lambda.TestTool/Commands/RunCommand.cs at line 45 and reproduce the reported `dotnet lambda-test-tool start` invocation on Windows. Trace how the start command validates emulator options and determine the intended behavior for an invocation without them. Done means the command handles this case according to that behavior rather than producing an unhandled exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, csharp
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.