sentry-rust icon indicating copy to clipboard operation
sentry-rust copied to clipboard

invalid event envelope

Open huiali opened this issue 2 years ago • 1 comments
trafficstars

Environment

What version are you running? Etc. FROM rust:1-alpine3.16 rust version 1.71.0-nightly (7908a1d65 2023-04-17)

sentry = { version = "0.30.0", features = ["profiling","tracing","backtrace","tower"] } sentry-actix = "0.30.0" sentry-anyhow = "0.30.0"

actix-web = "4.0.1"

Steps to Reproduce

Initiate a request and occasionally encounter a 400 error as follows:

2023-05-16T11:42:08.461410319Z [sentry] the profile is being dropped because it contains no samples 2023-05-16T11:42:08.472916689Z [sentry] Get response: {"id":"0d760173ee684ba09f56bd2edad17a34"} 2023-05-16T11:42:08.658567898Z [sentry] Get response: {"detail":"invalid event envelope","causes":["invalid item header","unknown variant profile, expected one of event, transaction, security, attachment, form_data, raw_security, unreal_report, user_report, session, sessions, metrics, metric_bucke ts, client_report at line 1 column 17"]} 2023-05-16T11:42:08.817842160Z [sentry] Get response: {"id":"d7a94f4273bd4b52b2879085218b1063"} 2023-05-16T11:42:13.824410048Z [sentry] the profile is being dropped because it contains no samples 2023-05-16T11:42:13.836741479Z [sentry] Get response: {"id":"99b2ad2368ea44e6be25587fc948d896"} 2023-05-16T11:42:13.877900509Z [sentry] the profile is being dropped because it contains no samples 2023-05-16T11:42:13.889481678Z

This error occurs occasionally

huiali avatar May 16 '23 12:05 huiali

invalid item header, unknown variant profile

That looks weird. Are you running an outdated self-hosted sentry by any chance?

Swatinem avatar May 16 '23 12:05 Swatinem