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.

probot@10.10.0 breaks authentication for some apps

See original GitHub issue

Bug Report

The refactor in #1392 seems to break authentication for our probot applications.

We’re getting this exception in production:

Token passed to createTokenAuth is not a string at Object.createTokenAuth (/workspace/node_modules/@octokit/auth-token/dist-node/index.js:39:11) at new Octokit (/workspace/node_modules/@octokit/core/dist-node/index.js:100:32) at new _a (/workspace/node_modules/@octokit/core/dist-node/index.js:165:30) at new OctokitWithDefaults (/workspace/node_modules/@octokit/core/dist-node/index.js:145:9) at new _a (/workspace/node_modules/@octokit/core/dist-node/index.js:165:30) at new OctokitWithDefaults (/workspace/node_modules/@octokit/core/dist-node/index.js:141:11) at new Probot (/workspace/node_modules/probot/lib/index.js:65:25) at Object.exports.createProbot (/workspace/node_modules/probot/lib/index.js:238:12) at GCFBootstrapper.loadProbot (/workspace/node_modules/gcf-utils/build/src/gcf-utils.js:56:36) at async /workspace/node_modules/gcf-utils/build/src/gcf-utils.js:135:33

The code that is getting this exception is something like this:

const cfg = await this.getProbotConfig(logging);
this.probot = probot_1.createProbot(cfg); // <-- line with error.

The config returned has the keys cert, id, and secret; which are values taken from the GitHub app.

Environment

  • Probot version(s): v10.10.0.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gr2mcommented, Nov 14, 2020

No need for a new issue. If you could help us debug that’s be great. Maybe try to uninstall octocat/core again, then delete your node_modules folder and lock file, and try to install again

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

🎉 This issue has been resolved in version 10.14.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

KB5014991: Authentication failures occur after the May 10 ...
Addresses a known issue that might cause authentication failures for some services on a server or client after you install the May 10,...
Read more >
Windows update breaks authentication for some server admins
Microsoft is warning a security update may cause authentication failures for Windows domain controllers. "After installing updates released ...
Read more >
Windows Kerberos authentication breaks after November ...
The known issue, actively investigated by Redmond, can affect any Kerberos authentication scenario within affected enterprise environments.
Read more >
Microsoft's out-of-band patch fixes Windows AD authentication ...
Microsoft releases a fix for the May 10 Patch Tuesday update that was causing authentication failures for some.
Read more >
Warning: KB3002657 can break authentication, with ...
The v1 KB3002657 update, which addresses issues in MS15-027, breaks authentication for some applications and devices that use NTLM for ...
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