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

Lesson 11 Pinata api keys error #316

Closed
DieKant opened this issue Nov 6, 2021 · 2 comments
Closed

Lesson 11 Pinata api keys error #316

DieKant opened this issue Nov 6, 2021 · 2 comments

Comments

@DieKant
Copy link

DieKant commented Nov 6, 2021

Hi all

I'm having an issue with the pinata api, when I try to upload my files this error pops up
image

my keys are stored like this in my .env

export PINATA_API_KEY=d88a99cdc680f3723da6
(secret key is also stored like this)

I'm I missing something?, The code is a perfect copy of the one at this link without the final if

@cromewar
Copy link
Contributor

cromewar commented Nov 8, 2021

Sometimes you should re-export the variables, also make sure you are using them on the brownie-config file. The error seems to be you are setting up the variables without "" as you see it says they must be strings.

@DieKant
Copy link
Author

DieKant commented Nov 13, 2021

Hi , @cromewar

Thanks for the tip, I got it working by importing the keys form the .env with ${SOME_KEY} into the brownie-config file instead of using os.getenv

@DieKant DieKant closed this as completed Nov 13, 2021
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

2 participants