Skip to content

exception.values.0: Missing value for required attribute #554

@jaumard

Description

@jaumard

Platform:

  • [*] Dart
  • Flutter Android or iOS
  • Flutter Web

Platform installed with:

  • [*] pub.dev
  • GitHub

Output of the command flutter doctor -v below:

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5 20G71 darwin-x64, locale fr-FR)
• Flutter version 2.2.3 at /Users/jaumard/flutter
• Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4

The version of the SDK (See pubspec.lock):
5.1.0


I have the following issue:

All the reported crash are <unknown> and sentry is saying

There was 1 problem processing this event
exception.values.0: Missing value for required attribute

Steps to reproduce:

I'm using logging package to centralize all logs and exceptions. On the call I'm sending info to sentry like this:

await _sentry.captureEvent(
      SentryEvent(
        throwable: record.error,
        exception: SentryException(type: '', value: ''),
        extra: {'log': _memLogLines.toList(growable: false).reversed.toList(growable: false)},
        culprit: record.error.toString(),
        logger: record.loggerName,
        message: SentryMessage(record.message),
        breadcrumbs: _breadcrumbs.toList(growable: false),
      ),
      stackTrace: record.stackTrace,
    );

Actual result:
Capture d’écran 2021-08-17 à 16 21 02

Expected result:
No sentry parsing errors

We previously used an old self-hosted sentry (v9.1.2) and got no issues, but now we're using the online sentry and the version is v21.7.0.dev0. We also migrate to the null safety version too so something might have been changed.

Maybe I'm doing it wrong but the idea was to push exception with captureEvent to be able to provide more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions