Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

How to troubleshoot context.github.repos.getContent is not a function #306

Open
jizusun opened this issue Oct 8, 2020 · 1 comment
Open
Labels

Comments

@jizusun
Copy link

jizusun commented Oct 8, 2020

Hi,

I have several probot running as a combined one.
From the stack trace, my guess is the error might come from stale.

Since https://github.com/probot/probot-config is archived,
shall we also remove this dependency?

09:02:48.274Z ERROR event: context.github.repos.getContent is not a function (id=08cd5580-0945-11eb-92c3-e815a7d005e4)
  TypeError: context.github.repos.getContent is not a function
      at loadYaml (/app/node_modules/probot-config/index.js:28:49)
      at getConfig (/app/node_modules/probot-config/index.js:91:24)
      at forRepository (/app/node_modules/stale/index.js:54:24)
      at unmark (/app/node_modules/stale/index.js:25:27)
      at Application.<anonymous> (/app/node_modules/probot/lib/application.js:157:50)
      at step (/app/node_modules/probot/lib/application.js:44:23)
      at Object.next (/app/node_modules/probot/lib/application.js:25:53)
      at fulfilled (/app/node_modules/probot/lib/application.js:16:58)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
  --
  event: {
    "event": "pull_request.edited",
    "id": "08cd5580-0945-11eb-92c3-e815a7d005e4",
    "installation": 146,
    "repository": "dsx/uberbot"
  }
@stale
Copy link

stale bot commented May 10, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@stale stale bot added the wontfix label May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant