Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Bug: Some channels won't load with TypeError [ERR_INVALID_ARG_TYPE] #81

@briankendall

Description

@briankendall

Sometimes I will try to view channels and it will sit there with the spinning "loading" icon forever. The error message that gets printed to the console is:

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be one of type string, TypedArray, or DataView. Received type undefined
    at Hash.update (internal/crypto/hash.js:58:11)
    at sha1sum (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/controller/image-store.js:1:1367)
    at ImageStore.imagePathFromUrl (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/controller/image-store.js:1:478)
    at ImageStore.isImageCached (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/controller/image-store.js:1:429)
    at new SlackFile (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/service/slack/slack-file.js:1:396)
    at SlackMessage.s.files.files.s.files.map.s (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/service/slack/slack-message.js:1:652)
    at Array.map (<anonymous>)
    at new SlackMessage (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/service/slack/slack-message.js:1:645)
    at e.reverse.map.s (/Applications/Wey.app/Contents/MacOS/Wey/asar/lib/service/slack/slack-channel.js:1:1330)
    at Array.map (<anonymous>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions