Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing recent instabiliy - error code 520 #65

Open
finnbear opened this issue Jul 15, 2021 · 1 comment · Fixed by #66 or #67
Open

Fixing recent instabiliy - error code 520 #65

finnbear opened this issue Jul 15, 2021 · 1 comment · Fixed by #66 or #67
Labels
Bug Something isn't working Help Wanted Extra attention is needed

Comments

@finnbear
Copy link
Member

The bot has been crashing every few weeks due to an API error. I have updated the dependencies in the deployment, and will see if that helps at all.

› Will update manually added bill 1334141.
› Will update manually added bill 1344932.
› Will get bill details this time.
› Will ignore bill 1345998.
events.js:305
    throw err; // Unhandled 'error' event
    ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. (ErrorEvent {
  target: WebSocket {
    _events: [Object: null prototype] {
      message: [Function],
      open: [Function],
      error: [Function],
      close: [Function]
    },
    _eventsCount: 4

...

type: 'error',
  message: 'Unexpected server response: 520',
  error: Error: Unexpected server response: 520
      at ClientRequest.<anonymous> (/home/fixmyrights/discord-bot/node_modules/ws/lib/websocket.js:595:7)
@finnbear finnbear added Bug Something isn't working Help Wanted Extra attention is needed labels Jul 15, 2021
@finnbear
Copy link
Member Author

Updating dependencies with npm update seems to have helped - the bot printed a status update for the first time in 2 months.

This was linked to pull requests Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help Wanted Extra attention is needed
Projects
None yet
1 participant