Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: {"error":"Cannot read properties of undefined (reading 'getWebFlowAuthorizationUrl')"} #2660

Open
1 task done
y824165978 opened this issue Apr 21, 2024 · 1 comment
Labels
Type: Bug Something isn't working as documented

Comments

@y824165978
Copy link

What happened?

Using the OAuth web flow on OAuth app.
Like: Example: Watch a repository when a user logs in using the OAuth web flow
I got some error message:

  1. TypeError: Cannot read properties of undefined (reading 'on')
    app.oauth.on("token", async ({ token, octokit }) => {
    I replaced app.oauth.on with app.on and it worked fine.
  2. {"error":"Cannot read properties of undefined (reading 'getWebFlowAuthorizationUrl')"}
    I replaced import { OAuthApp, createNodeMiddleware } from "octokit"; with import { OAuthApp, createNodeMiddleware } from "@octokit/oauth-app"; and it worked fine.

Versions

Octokit.js v3.2.0, Node v18.18.2

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@y824165978 y824165978 added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Apr 21, 2024
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@kfcampbell kfcampbell removed the Status: Triage This is being looked at and prioritized label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

2 participants