Skip to content

Validator: INTERNAL ERROR #792

@zqmVenus

Description

@zqmVenus

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (node:buffer:319:9)
at GithubAPI.getContent (/app/probot-mergeable/lib/github/api.js:113:21)
at async Contents.validate (/app/probot-mergeable/lib/validators/contents.js:62:23)
at async Promise.all (index 1)
at async logicalConnectiveValidatorProcessor (/app/probot-mergeable/lib/validators/lib/logicalConnectiveValidatorProcessor.js:45:18)
at async Promise.all (index 1)
at async logicalConnectiveValidatorProcessor (/app/probot-mergeable/lib/validators/lib/logicalConnectiveValidatorProcessor.js:45:18)
at async Promise.all (index 0)
at async processWorkflow (/app/probot-mergeable/lib/flex/lib/processWorkflow.js:104:20)
at async executeMergeable (/app/probot-mergeable/lib/flex/flex.js:40:3)

Occasional errors. Could you please check if it's a bug? After my analysis, at line 113 of the code lib/github/api.js, shouldn't you first check if the response res.data.content is true?

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