gavinr / github-csv-tools

Import and export GitHub issues via CSV
https://npmjs.com/github-csv-tools
MIT License
661 stars 118 forks source link

Error when running inside an enterprise #54

Closed sriharsha-bhasuru closed 3 years ago

sriharsha-bhasuru commented 3 years ago

I installed the githubCsvTools globally and started the process as typing githubCsvTools in the command prompt

The program requested for Token, Org name, Repo name and errored out with below response

_error RequestError [HttpError]: request to https://api.github.com/repos/ORG_NAME/REPO_NAME/issues?state=all failed, reason: self signed certificate in certificate chain at C:\Users\test\AppData\Roaming\npm\node_modules\github-csv-tools\node_modules\@octokit\request\dist-node\index.js:108:11 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Job.doExecute (C:\Users\test\AppData\Roaming\npm\node_modules\github-csv-tools\node_modules\bottleneck\light.js:405:18) { name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/ORG_NAMEREPO_NAME/issues?state=all', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'github-csv-tools octokit-rest.js/18.6.0 octokit-core.js/3.5.1 Node.js/12.13.1 (win32; x64)', authorization: 'token [REDACTED]' }, request: { hook: [Function: bound bound register] } } }_

gavinr commented 3 years ago

Possibly resolved by https://github.com/gavinr/github-csv-tools/issues/56#issuecomment-920105250 - @sriharsha-bhasuru can you please try that and report back in #56?