GHE_HOST deprecation warning without using Probot constructor
See original GitHub issueBug 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:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
🎉 This issue has been resolved in version 10.17.2 🎉
The release is available on:
Your semantic-release bot 📦🚀