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

proxyPrivateDownload can't fetch asset #155

Open
10n37 opened this issue Nov 4, 2022 · 1 comment
Open

proxyPrivateDownload can't fetch asset #155

10n37 opened this issue Nov 4, 2022 · 1 comment

Comments

@10n37
Copy link

10n37 commented Nov 4, 2022

I am using hazel programmaticly with private github repo
I meet issue that proxyPrivateDownload function always returns 404, if Authorization header is not set.

For example, assetRes without Authorization header:

assetRes: Response {
  size: 0,
  timeout: 0,
  [Symbol(Body internals)]: { body: [Gunzip], disturbed: false, error: null },
  [Symbol(Response internals)]: {
    url: 'https://[email protected]/repos/username/myrepo/releases/assets/assetId,
    status: 404,
    statusText: 'Not Found',
    headers: [Headers]
  }
}
  

assetRes with Authorization header:

  assetRes: Response {
    size: 0,
    timeout: 0,
    [Symbol(Body internals)]: { body: [PassThrough], disturbed: false, error: null },
    [Symbol(Response internals)]: {
      url: 'https://[email protected]/repos/username/myrepo/releases/assets/assetId',
      status: 302,
      statusText: 'Found',
      headers: [Headers]
    }
  },
  

Please, resolve this issue. I can't use hazel because of this problem.

@10n37
Copy link
Author

10n37 commented Nov 4, 2022

Please, it's just 1 line of code. This can't be true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant