Skip to content

Getting Microsoft.Azure.Cosmos.Client: Response status code does not indicate success: BadRequest (400) #69

@aatek

Description

@aatek

I'm attempting to run the event-sourcing sample code. Everything builds with no issues, however, when I attempt to send a few items via the console app I get the following exception:

Microsoft.Azure.Cosmos.Client: Response status code does not indicate success: BadRequest (400); Substatus: 0; ActivityId: b529d0fd-c0ce-40c2-9baf-7396cab58e6c; Reason: ({"Errors":["One of the specified inputs is invalid"]}

The JSON payload being sent by the console app looks fine:

{ "id": "8b98fcc7-867f-4426-a31c-c421510715ee", "CartId": "343a8856-0936-48de-b602-e7912cbd4df1", "SessionId": "4908cb2d-9478-4d0d-b2a0-49befd735267", "UserId": 791, "EventType": "cart_created", "Product": null, "QuantityChange": 0, "ProductsInCart": [], "EventTimestamp": "2025-04-10 7:13:09 AM" }

I have installed func 4.0.7030 and dotnet 9.0.200 on Win 11

I'm curious and if anyone can reproduce the exception or if I'm doing something wrong in either my setup. Any guidance would be appreciated!

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