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

gist-it sometimes doesn't read the environent from GITHUB_TOKEN #1

Open
algal opened this issue Sep 25, 2024 · 0 comments
Open

gist-it sometimes doesn't read the environent from GITHUB_TOKEN #1

algal opened this issue Sep 25, 2024 · 0 comments

Comments

@algal
Copy link

algal commented Sep 25, 2024

Three of us (me, Faisal, and Nate) experienced an issue where gist-it does not read the token from the environment variables GITHUB_TOKEN or GIST_TOKEN.

In this situation, it is possible to workaround the issue by manually writing the token into the notebook.json file.

Here were my observations:

  • when I went to ~/.jupyter/serverconfig/notebook.json, the token was not set and in fact a key was set to default gists to private, when I had noticed UI defaulted them to private. So it seems this file not only had not been written with the token, it was not being read regarding private/public.
  • once I set the value in that file, it worked.
  • there is another file on my disc ./.jupyter/nbconfig/notebook.json, which has some keys related to nbmeta and collapsible headings, but nothing related to gists.
  • guess: maybe something is writing or reading the wrong notebook.json?

This is not a grand issue in the scheme of things but I am noting it here so we can follow up as needed.

Discord thread: https://discord.com/channels/1200111522916094103/1288615077263708245

@algal algal changed the title gist-it sometimes doesn't read the environent for the GITHUB_TOKEN gist-it sometimes doesn't read the environent from GITHUB_TOKEN Sep 25, 2024
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