Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

need to set GITHUB_TOKEN in brownie but don't know how #4

Open
scinftist opened this issue Oct 21, 2021 · 2 comments
Open

need to set GITHUB_TOKEN in brownie but don't know how #4

scinftist opened this issue Oct 21, 2021 · 2 comments

Comments

@scinftist
Copy link

I'm using VPN to connect to the internet (because GitHub is not accessible in my country)

when I run > brownie compile
I get

 ConnectionError: Status 404 when getting package versions from Github: 'Not Found'

Missing or forbidden.
If this issue persists, generate a Github API token and store it as the environment variable `GITHUB_TOKEN`:
https://github.blog/2013-05-16-personal-api-tokens/

I think it caused by github rejecting my connection

I've tried to set github_token in dotenv like this:

export GITHUB_TOKEN = 'ghp_00000000000000000000000000000000000000'
also
but getting the same error
also echo $GITHUB_TOKEN
[is blank]

in the brownie docs: https://eth-brownie.readthedocs.io/_/downloads/en/stable/pdf/ page 33 installing from GitHub said :

It is possible to install from a private Github repository using an API access token like a personal access token. This can be provided to Brownie via the GITHUB_TOKEN environment variable in the form of username:ghp_token_secret. See also https://docs.github.com/en/rest/overview/

but I don't know what to do in .env or brownie-config.yaml
thank you in advance

@scinftist
Copy link
Author

also tried

export GITHUB_TOKEN='username:ghp_0000000000000000000000000000000000000'

in dotenv and no luck
also run
also tried in terminal

export GITHUB_TOKEN='username:ghp_0000000000000000000000000000000000000'

now echo $GITHUB_TOKEN return the value but still no luck

 ConnectionError: Status 404 when getting package versions from Github: 'Not Found'

Missing or forbidden.
If this issue persists, generate a Github API token and store it as the environment variable `GITHUB_TOKEN`:
https://github.blog/2013-05-16-personal-api-tokens/

@PatrickAlphaC
Copy link
Owner

Could you make this a question on stack exchange ETH?

It looks like someone else had a similar question: https://ethereum.stackexchange.com/questions/110998/smartcontract-lottery-project-brownie-compile-generates-connection-error-404

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants