Skip to content

[Issue] Discord Error Error: self-signed certificate #61

Description

@dougmaitelli

Current Behavior

The service runs for a while with no issues, but randomly gets errors from discord about certificates for some reason, and when it does it crashes and exits.

[PteroStats] Panel stats successfully posted to the server-status channel!
[PteroStats] Discord Error Error: self-signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
    at TLSSocket.emit (node:events:519:28)
    at TLSSocket._finishInit (node:_tls_wrap:1085:8)
    at ssl.onhandshakedone (node:_tls_wrap:871:12) {
  code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
}

Expected Behavior

Application should not crash and exit in these cases, it should just retry.

Steps to Reproduce

N/A

Bot Version

v4.1.0

Installation Method

Egg

Error Logs

[PteroStats] Panel stats successfully posted to the server-status channel!
[PteroStats] Discord Error Error: self-signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
    at TLSSocket.emit (node:events:519:28)
    at TLSSocket._finishInit (node:_tls_wrap:1085:8)
    at ssl.onhandshakedone (node:_tls_wrap:871:12) {
  code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
}

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have checked in the Discord server and believe this is a bug with the bot, and not a configuration issue with my specific system.

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