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]: Can't call the list users endpoint using an App instance #2603

Open
1 task done
statusfailed opened this issue Jan 4, 2024 · 2 comments
Open
1 task done
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@statusfailed
Copy link

statusfailed commented Jan 4, 2024

What happened?

I'm trying to call the list users endpoint while authenticated as an app.

I expect this to return a list of users, but it gives an error.

Here's a minimal reproducing example:

const app = new App({
  appId: appId,
  privateKey: github_private_key,
});

// this is fine
//const response = await app.octokit.request("/app");

// this is broken
const response = await app.octokit.request("/users");
console.log(response);

Versions

  • Octokit 3.1.2
  • Node 21.2.0

Relevant log output

I get the following error:

    Error: [@octokit/auth-app] installationId option is required for installation authentication.

This sounds like I'm supposed to authenticate as an installation, but I don't want to do that.
I want to query all github users, which should be a public endpoint.

Code of Conduct

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

github-actions bot commented Jan 4, 2024

👋 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 added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jan 5, 2024
@kevb10
Copy link

kevb10 commented Jan 10, 2024

possible duplicate #2568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

3 participants