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

{"file":"not found"} error #8

Closed
rstacruz opened this issue Jan 11, 2015 · 7 comments
Closed

{"file":"not found"} error #8

rstacruz opened this issue Jan 11, 2015 · 7 comments

Comments

@rstacruz
Copy link
Collaborator

travis-encrypt -r rstacruz/abc KEY=VAL
# KEY
[object Object]

Inspecting [object Object], it's actually err as reported by encrypt() which translates to {"file":"not found"}.

That is:

> require('travis-encrypt')('a/b', 'KEY=VAL', undefined, undefined, console.log)
...
{ file: 'not found' }

Using 1.0.2 from npm.

@burnnat
Copy link
Collaborator

burnnat commented Feb 10, 2015

I'm experiencing this too, on Windows 7 x86 (not sure if this is OS-dependent). Anybody know of a workaround?

@rstacruz
Copy link
Collaborator Author

I'm getting this on OSX 10.10 + Node.js 0.10, so I can confirm this isn't something that would be OS-dependent :)

@pwmckenna
Copy link
Owner

i'll fix the [object Object] display issue...as for the actual error, what repo slug are you actually using? is it private?

@burnnat
Copy link
Collaborator

burnnat commented Feb 10, 2015

Ok, so I think I've figured this out, at least for my situation: I had mistakenly enabled the wrong repo in Travis, so when I switched on the correct repository in the Travis site and re-ran it completed successfully.

Maybe a more enlightening error message might be in order for this case?

@pwmckenna
Copy link
Owner

it would be fairly straight forward to at least add error handling for this specific case. travis' api doesn't generally provide the most helpful messages though, so being helpful in the most common cases is probably the best we can do.

as a side note, I didn't really know if people were using this out in the wild. it probably deserves at least a small test suite now that it has at least 3 users :)

@pwmckenna
Copy link
Owner

@burnnat @rstacruz thanks for the input, just released 1.1.1 that does an additional check if the key lookup fails, and tells you if it can't find the repo specified.

repository pwmckenna/node-travis-encrypts not found

the error formatting issue should also be resolved (though I had to remove the red colorizing or the error message). I'm going to add you both as contributors, so if you see additional areas for improvement, feel free.

@rstacruz
Copy link
Collaborator Author

I ran into this as part of https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db by the way!

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

3 participants