Skip to content

proxyPrivateDownload can't fetch asset  #155

@excal1bu7

Description

@excal1bu7

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://mytoken@api.github.com/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://mytoken@api.github.com/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions