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]: getting unicorn HTML in an error response #554

Closed
1 task done
ljharb opened this issue Mar 6, 2024 · 5 comments
Closed
1 task done

[BUG]: getting unicorn HTML in an error response #554

ljharb opened this issue Mar 6, 2024 · 5 comments
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@ljharb
Copy link

ljharb commented Mar 6, 2024

What happened?

I run npx repo-report ls which runs a graphql query using a GH_TOKEN in the environment, to list all the repos you have access to.

in response, i get a unicorn response with html that starts with:

RequestError [HttpError]: <!DOCTYPE html>
<!--

Hello future GitHubber! I bet you're here to remove those nasty inline styles,
DRY up these templates and make 'em nice and re-usable, right?

Please, don't. https://github.com/styleguide/templates/2.0

-->
<html>
  <head>
    <title>Unicorn! &middot; GitHub</title>

I'm using v5 of this library, which worked fine before with no changes.

Is this a known thing with this version, or is it a Github API problem?

Versions

Octokit v5.0.6, node v21.6.2

Relevant log output

No response

Code of Conduct

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

github-actions bot commented Mar 6, 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! 🚀

@ljharb ljharb changed the title [BUG]: getting [BUG]: getting unicorn HTML in an error response Mar 6, 2024
@github-project-automation github-project-automation bot moved this to 🆕 Triage in 🧰 Octokit Active Mar 6, 2024
@wolfy1339
Copy link
Member

Are yous sure on the version number?
It's not a valid version for either the

  • octokit
  • @octokit/core
  • @octokit/graphql

This seems like a GitHub API problem

@ljharb
Copy link
Author

ljharb commented Mar 6, 2024

Yes, v5.0.6 of @octokit/graphql, which is absolutely a valid version number, as you can verify with npm show @octokit/graphql@5.0.6

@wolfy1339
Copy link
Member

The unicorn error is definitely something wrong on GitHub's side. The underlying code hasn't really changed for a couple years

@ljharb
Copy link
Author

ljharb commented Mar 6, 2024

Thanks; I'll file a ticket.

@ljharb ljharb closed this as completed Mar 6, 2024
@github-project-automation github-project-automation bot moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Active Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Archived in project
Development

No branches or pull requests

2 participants