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.

GHE_HOST deprecation warning without using Probot constructor

See original GitHub issue

Bug Report

Current Behavior Lately when starting the application I’m getting

WARN	 (Deprecation): [probot] "GHE_HOST"/"GHE_PROTOCOL" is deprecated when using with the Probot constructor. Use "new Probot({ baseUrl: 'https://github.acme-inc.com/api/v3' })" instead
    Deprecation: [probot] "GHE_HOST"/"GHE_PROTOCOL" is deprecated when using with the Probot constructor. Use "new Probot({ baseUrl: 'https://github.acme-inc.com/api/v3' })" instead
        at Object.getProbotOctokitWithDefaults (/Users/andreatortosa/pcecmd/commentapp/node_modules/probot/lib/octokit/get-probot-octokit-with-defaults.js:32:26)
        at new Probot (/Users/andreatortosa/pcecmd/commentapp/node_modules/probot/lib/probot.js:60:60)
        at Object.run (/Users/andreatortosa/pcecmd/commentapp/node_modules/probot/lib/run.js:22:20)
        at Object.<anonymous> (/Users/andreatortosa/pcecmd/commentapp/node_modules/probot/lib/bin/probot-run.js:4:5)
        at Module._compile (internal/modules/cjs/loader.js:1147:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
        at Module.load (internal/modules/cjs/loader.js:996:32)
        at Function.Module._load (internal/modules/cjs/loader.js:896:14)
        at Module.require (internal/modules/cjs/loader.js:1036:19)
        at require (internal/modules/cjs/helpers.js:72:18)

and

WARN (event): [probot] "context.github" is deprecated. Use "context.octokit" instead.

I modified the code to address the latest warn but I do not understand how to address the GHE_HOST one

Expected behavior/code No warning as before

Environment

  • Probot version(s): 10.9.3
  • Node/npm version: v13.10.1
  • OS: 11.0.1

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gr2mcommented, Nov 20, 2020

Got it, thank you, I’ll look into it. Just ignore the warning, it’ll go away. We don’t plan to remove support for the GHE_HOST environment variable at this point

0reactions
github-actions[bot]commented, Nov 22, 2020

🎉 This issue has been resolved in version 10.17.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing strings for MessageEmbed#setAuthor is deprecated ...
It's just a deprecation warning. You can safely ignore it. It means that in a future version of the Discord client, you won't...
Read more >
ProBot Commands
Are you new to ProBot and want to know about all the commands and their usage? ... warnings - Get the list of...
Read more >
Discord ProBot - Complete Invite & Setup Guide - YouTube
Complete tutorial for using ProBot on Discord. Including how to invite it to your server, setup settings on the bot Dashboard, ...
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