Skip to content
pubscout

api_error_monitor

0.0.3, released a year ago by an unverified publisher

Detects API response parsing errors and sends reports to Discord webhooks.

$ flutter pub add api_error_monitor
Source repository

What it does

Intercepts Dio and HTTP client requests to automatically catch JSON parsing issues, type mismatches, and missing keys. It logs these errors locally and forwards them to a Discord webhook with retry support.

AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to automatically track API data-mismatch and parsing errors in production
  • You use Dio or the http package and want quick Discord alerts for malformed backend responses

Skip it when

  • You require complex state management solutions
  • You do not use Discord for error logging or webhook alerts

Strengths

  • Built-in integrations for both Dio and the http package
  • Automatic type mismatch and missing key detection
  • Supports local file logging and automatic webhook retry queues

Weaknesses

  • Limited to Discord webhook integration out of the box
  • Relies on heuristics and exception analysis which might miss edge-case errors

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Requires a Discord webhook URL and initialization of the ApiErrorMonitor instance or package interceptors.

import 'package:api_error_monitor/api_error_monitor.dart';

final errorMonitor = ApiErrorMonitor(
  appName: "MyApp",
  discordWebhookUrl: "https://discord.com/api/webhooks/xxxx",
);

Works with

Packages commonly used together with api_error_monitor: ones it builds on, ones built on it, and its own family.