Bad Request /api/1/envelope/ with C#/Node Sentry SDK
Description
Sending a post request to /api/1/envelope/
is showing the error {"detail": "Cannot parse request body (unexpected content after document: line 2 column 1 (char 143))"}
This is using the C# Sentry SDK both 3.X and 4.X versions are showing the same error.
Preview of the request body
{"sdk":{"name":"sentry.dotnet","version":"4.3.0"},"event_id":"ddee8eff3fa04762a86f1ad08ac5240b","sent_at":"2024-04-12T23:51:08.942959+00:00"}
{"type":"event","length":5976}
{"event_id":"ddee8eff3fa04762a86f1ad08ac5240b","timestamp":"2024-04-12T23:51:08.4183899+00:00","platform":"csharp","exception":{"values":[{"type":"System.Exception","value":"Error exception!",
Looks like version 2.1.1 originally supported glitchtip from this example https://gitlab.com/glitchtip/error-factories/dotnet-error-factory/-/blob/master/myWebApp.csproj?ref_type=heads which only sent 1 json object { } in the body, version 2.2 after broke it.
Version 3.X seems to send 3 json objects on each line which breaks this too.
Edited by Builderb