You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to create an S3 Batch Operations job that invokes a Lambda function from an S3 inventory manifest. I am using the CreateJobAsync() method of the AmazonS3ControlClient class. This throws a Amazon.S3Control.AmazonS3ControlException with the message Request invalid.
Expected Behavior
No exception is thrown and the job is created successfully.
Current Behavior
Exception Amazon.S3Control.AmazonS3ControlException is thrown.
Reproduction Steps
I was able to reproduce with a simple .NET 8 console app as follows:
I noticed the UserArguments empty element which seemed unusual since I am using 1.0 for the InvocationSchemaVersion. So I removed this empty element and retried and the request then succeeded with a 200 OK with the following response:
So it appears the issue is caused by the empty UserArguments element. This should not be there since I have not set UserArguments in my CreateJobRequest.
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3Control 3.7.400
Targeted .NET Platform
.NET 8.0
Operating System and version
macOS Sonoma 14.5
The text was updated successfully, but these errors were encountered:
Apologies for the delay in the response, but this should be fixed in the latest version of the AWSSDK.S3Control package we just released (https://www.nuget.org/packages/AWSSDK.S3Control/3.7.400.12). I tried running your example and was able to create the job successfully.
The issue was a bug where we were writing the UserArguments property into the request body regardless if it was populated or not (this only impacted the CreateJob operation which is why we hadn't caught it before).
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
I am attempting to create an S3 Batch Operations job that invokes a Lambda function from an S3 inventory manifest. I am using the CreateJobAsync() method of the AmazonS3ControlClient class. This throws a
Amazon.S3Control.AmazonS3ControlException
with the messageRequest invalid
.Expected Behavior
No exception is thrown and the job is created successfully.
Current Behavior
Exception
Amazon.S3Control.AmazonS3ControlException
is thrown.Reproduction Steps
I was able to reproduce with a simple .NET 8 console app as follows:
S3ControlClient.csproj:
Program.cs:
Possible Solution
I was able to capture and replay the request to get a successful response.
The captured request was as follows:
This failed with a
400 Bad Request
with the following response:I noticed the
UserArguments
empty element which seemed unusual since I am using1.0
for theInvocationSchemaVersion
. So I removed this empty element and retried and the request then succeeded with a200 OK
with the following response:So it appears the issue is caused by the empty
UserArguments
element. This should not be there since I have not setUserArguments
in myCreateJobRequest
.Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3Control 3.7.400
Targeted .NET Platform
.NET 8.0
Operating System and version
macOS Sonoma 14.5
The text was updated successfully, but these errors were encountered: