aws / aws/aws-lambda-dotnet

During start command got bug error

Geschlossen
#2,523 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug p2
Vorherrschende Sprache
C#
Sterne
1.7k
Forks
503
Ø Merge
1 T. 18 Std.
Gemergte PRs (30 T.)
21

Beschreibung

### 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne bei Amazon.Lambda.TestTool/Commands/RunCommand.cs in Zeile 45 und reproduziere die gemeldete `dotnet lambda-test-tool start`-Invocation unter Windows. Verfolge, wie der start-Befehl die Emulatoroptionen validiert, und ermittle das beabsichtigte Verhalten für eine Invocation ohne diese Optionen. Als erledigt gilt die Aufgabe, wenn der Befehl diesen Fall entsprechend diesem Verhalten behandelt, anstatt eine unbehandelte Exception zu erzeugen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, csharp
Bereich
cli, devtools
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.