github-release-notes icon indicating copy to clipboard operation
github-release-notes copied to clipboard

Unable to access behind proxy

Open VassilIordanov opened this issue 7 years ago • 2 comments

When I run gren changelog -B on a public repo, I do get the following:

Options:
Tags: empty
Prefix: empty
Template: [object Object]
Prerelease: false
Generate: false
Quiet: false
Override: false
Debug: true
Ignore labels: empty
Ignore issues with: empty
Ignore commits with: empty
Group by: false
Milestone match: Release {{tag_name}}
Changelog filename: CHANGELOG.md
Username: NCI-Agency
Repo: anet
Token: ********************************'
Data source: issues
Include messages: commits
Ignore tags with: empty
Limit: 30

🤖  - Generate changelog file:
===================================
WARNING: Looks like you don't have network connectivity!
⠋ Getting the list of releasesTypeError: Cannot read property 'status' of undefined
    at handler (/usr/lib/node_modules/github-release-notes/node_modules/github-api/dist/components/Requestable.js:366:40)
    at <anonymous>
⠋ Getting the list of releases

At the same time, directly calling the api works:

curl -X GET \
  https://api.github.com/repos/NCI-Agency/anet/releases \
  -H 'accept: application/json' \
  -H 'authorization: token ********************************' \
  -H 'content-type: application/json'

I am behind a proxy. Any help would be appreciated!

VassilIordanov avatar Aug 07 '18 14:08 VassilIordanov

Just to confirm I am having the same issue. It appears to be related to the underlying github-api library...:

https://github.com/github-tools/github/issues/435

Or even deeper how axios implements the proxy support...

jmartasek avatar Oct 24 '18 16:10 jmartasek

OK. I now believe that the issue is if your proxy is on http and you connect to https (which is the case for github). Once this https://github.com/axios/axios/pull/959 is merged and updated in the dependencies, we should be good to go...

jmartasek avatar Oct 24 '18 20:10 jmartasek