question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest version of probot causes error when getting config

See original GitHub issue

The current probot code is expecting for context.config call to error if no config is found, but the current version doesn’t seem to error when no config is defined an instead i am getting this error:

20:56:12.254Z ERROR probot: Cannot convert undefined or null to object
  TypeError: Cannot convert undefined or null to object
      at Function.assign (<anonymous>)
      at forRepository (/bot/node_modules/probot-stale/index.js:53:21)

Looking at that line I see: image

Seems like it should supply that default config if it’s null or undefined as well.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Nov 7, 2019

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
rthadurcommented, Sep 25, 2020

@jakeswenson did you find solution ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Probot : Error deploying Probot app on Now
I am running and deploying application on Now using now-cli. The error says that you haven't defined the LOG_LEVEL of the App. To...
Read more >
Developing an app - Probot
To develop a Probot app, you will first need a recent version of Node.js ... Generating a new app; Running the app locally;...
Read more >
Discord Server Set Up with Probot (Reaction Roles ... - YouTube
We will also go over setting up the ticket system again! Corrections that must be noted- -- In the video I said, "there...
Read more >
Reaction Roles - Probot Discord (Updated Video) - YouTube
This video was made in hopes of showing a more direct approach to setting up the roles as well as some issues that...
Read more >
How to Set Up the ProBot Leveling System - YouTube
Bot: https:// probot.io Probot,how to setup probot,how to setup probot ... probot levels, how to setup pro bot leveling system, how to get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found