Skip to content

[Bug] notification-manager.ts:loadExternalNotifications Exception Messages are Massive #2650

@phroggster

Description

@phroggster

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Approximately 25,377 lines of axios configuration, cache, and debugging information gets written to the log file.

Expected Behavior

A brief message similar to

[2024-07-27 09:22:58.0011] - error: [v5.62.1] read ECONNRESET while loading external notifications from https://raw.githubusercontent.com/crowbartools/Firebot/metadata/notifications/notifications.json

gets written to the log file.

Steps To Reproduce

  1. Wait for an external notification check to begin.
  2. Sever internet connection.
  3. profit

Version

5.62.1

What operating system are you using Firebot on?

Windows 10

Relevant log output

[2024-07-27 09:22:58.0011] - error: [v5.62.1] Error loading external notifications 
{
  message: 'read ECONNRESET',
  stack: 'Error: read ECONNRESET\n' +
    '    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)',
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read',
  config: {
    url: 'https://raw.githubusercontent.com/crowbartools/Firebot/metadata/notifications/notifications.json',
    method: 'get',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'User-Agent': 'axios/0.21.4'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    validateStatus: [Function: validateStatus],
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    data: undefined
  },
--- SNIP ---

Contact Details (Optional)

phroggie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions