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

Error: Missing config variable: PLAYCANVAS_API_KEY #5

Closed
Christopher-Hayes opened this issue Aug 10, 2020 · 2 comments
Closed

Error: Missing config variable: PLAYCANVAS_API_KEY #5

Christopher-Hayes opened this issue Aug 10, 2020 · 2 comments

Comments

@Christopher-Hayes
Copy link

Christopher-Hayes commented Aug 10, 2020

Just started trying to use this tool and I'm getting this error that the api key is missing from the config. But, I definitely have the the api key in the config. I took the config from the README and just altered the values to match the ones for my project.

.pcconfig

 {                                                                                                                                                                                       
    "PLAYCANVAS_BRANCH_ID": "<branch id>",                                                                                                                       
    "PLAYCANVAS_PROJECT_ID": <project integer ID>,                                                                                                                                                      
    "PLAYCANVAS_TARGET_DIR": "<absolute path to files dir>",                                                                                           
    "PLAYCANVAS_API_KEY": "<api key generated by PlayCanvas>",                                                                                                                             
    "PLAYCANVAS_BAD_FILE_REG": "^\\.|~$",                                                                                                                                                 
    "PLAYCANVAS_BAD_FOLDER_REG": "\\."                                                                                                                                                    
  }

I tried setting an environment variable instead like the README said was possible, still no luck. Any ideas?

Platform: Ubuntu 20.04
NPM: 6.13.4
Node: 13.7.0

@Christopher-Hayes
Copy link
Author

Oh, wait nvm. I was using .pcconfig in the target directory when pcconfig.json is supposed to be used. I guess a notice that the config file wasn't found might be a helpful warning for future users since the error about not finding the api key config had me assuming it was finding the config file just fine.

@slimbuck
Copy link
Member

I've logged an issue @Christopher-Hayes, thanks for reporting!

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