-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
No such file or directory, open './issues/data.json' #2
Comments
could it be that you didn't install the dependencies? I forgot to mention it in the installation steps also, errors during |
I ran |
Here's a more complete log:
Do I need to get a new token for this to work? |
It looks like your token can't be found in the config. It should look something like this: // /path/to/backup-github-issues/config/local.js
module.exports = { token: '9a6055acdb6dc2e37a64fc1c4c2bc98c4bcdd58a' } |
none, it's just used to be able to increase the quota of requests :) |
K. With the token (with no permissions) I get this now:
Am I missing another part of the config? |
is the repo name correct in the url |
The repo I'm trying to backup is private. Is that okay? It's reported correctly here:
But is incorrect here:
Ie. The |
could you post an anonymized output of the command |
Sure thing:
|
Seems to be something else. I get this same error when trying to export the backup-github-issues repo:
|
Ah, it doe seem like it's the But if I go to https://api.github.com/repos/maxlath/backup-github-issues%0A/issues?per_page=100&state=all&page=1 I get:
|
And to be clearer, my repo name looks like this: |
e041302 might solve this issue, trying to use a consistent repository name parser, can you give it a try? |
That fixes the issue for public repos (ie. your backup-github-repo) and exports all of the issues successfully, but there is a new issue with private repos. After adding additional permissions to the token (not sure which one yet specifically - but adding all permissions does fix it) to get past the
But then actually opening the html files shows FYI, the
|
It looks like the
|
|
I just invited you to a test private repo - https://github.com/dustinkerstein/private-repo-test - Let me know if you're not able to replicate there. |
was able to replace the issue from the private repo, indeed you can't just get issues html from the usual address curl -H 'Authorization: token ${token}' https://github.com/dustinkerstein/private-repo-test/issues/1 I can't think of another way to get that html, but if you do find a way, feel welcome to open a PR. meanwhile, I will update the readme to precise that issues HTML download isn't supported for private repos |
These both appear to work:
I think you just needed the |
Sorry, it also needs
Then I also for some reason had to hardcode the token as I it was still complaining about credentials. After that, I was able to get it to output on my desired repo, but for some reason I was still seeing issues pulling from the new private test repo. Further, the output is now in a different format so it's not parsing correctly. Are you able to get those commands above working? |
You should be able to see this working in the browser here with this url - |
sorry, I won't work further on supporting private repos - this tool is low on my priority list and my use-case is covered - but can take time to review and merge PRs |
Ok. Thanks. It does look like this json API approach would be a bit more work to parse. |
Any idea what could be causing this error? FYI, I did have to install
jsondepth
globally in order for thejd
command to work.The text was updated successfully, but these errors were encountered: