Skip to content

inputBaggageString.split is not a function #5250

Closed
@pepf

Description

@pepf

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/nextjs

SDK Version

7.1.1

Framework Version

Link to Sentry event

https://sentry.io/organizations/anyfin/issues/3338863766/

Steps to Reproduce

  1. Upgrade to sentry/nextjs 7.1.1
  2. Have a backend running sentry/javascript using 7.0.0
  3. Trigger some requests.

Expected Result

No errors originating from sentry packgages on http calls.

Actual Result

inputBaggageString.split is not a function originating from:

export function parseBaggageString(inputBaggageString: string): Baggage {
return inputBaggageString.split(',').reduce(
([baggageObj, baggageString], curr) => {

I verified this error is not triggered on the api or client routes of the nextjs package, but rather on our backend api running nextjs/javascript@7.0.0. However it only happens with requests from this specific "client" (sentry/nextjs@7.1.1).

Other sentry frontend clients connecting to the very same backend do net get this error.

Relevant section of sentry.client.config, as you can see no strange settings.

Sentry.init({
  dsn: SENTRY_DSN,
  enabled: ENVIRONMENT !== "local", // Enable only for prod envs
  // Adjust this value in production, or use tracesSampler for greater control
  tracesSampleRate: isProduction ? 0.5 : 0,
  environment: ENVIRONMENT,
  beforeBreadcrumb: excludeGraphQLFetch, // just a  small util.

Metadata

Metadata

Assignees

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