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

Script failure #13

Open
RyanNorooz opened this issue Mar 2, 2022 · 4 comments
Open

Script failure #13

RyanNorooz opened this issue Mar 2, 2022 · 4 comments

Comments

@RyanNorooz
Copy link

the action stopped working like 2 week ago
this is the error it's been giving:

click to see logs
>>> Run npm start

> [email protected] start /home/runner/work/lang-box/lang-box
> node --experimental-modules --es-module-specifier-resolution=node src/index

ignoreLangs: [ 'yaml', 'json', 'svg', 'xml', 'toml', 'markdown' ]
username is RyanNorooz.


1 events fetched.
2 commits fetched.


run > git checkout --orphan temp && git rm -rf . && rm -rf *
exited with code 0
run > echo "*.* linguist-detectable" > .gitattributes
run > git config user.name "dummy" && git config user.email "[email protected]"
exited with code 0
exited with code 0
run > git add . && git commit -m "dummy"
exited with code 0
run > github-linguist --breakdown --json
exited with code 0





Error: Validation Failed
    at ApiClient.fetch (file:///home/runner/work/lang-box/lang-box/src/api.js:20:13)
    at processTicksAndRejections (internal/process/task_queues.js:[9](https://github.com/RyanNorooz/lang-box/runs/5392042580?check_suite_focus=true#step:9:9)5:5)
    at async file:///home/runner/work/lang-box/lang-box/src/index.js:[11](https://github.com/RyanNorooz/lang-box/runs/5392042580?check_suite_focus=true#step:9:11)6:5
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node --experimental-modules --es-module-specifier-resolution=node src/index`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-03-02T[13](https://github.com/RyanNorooz/lang-box/runs/5392042580?check_suite_focus=true#step:9:13)_[22](https://github.com/RyanNorooz/lang-box/runs/5392042580?check_suite_focus=true#step:9:22)_[43](https://github.com/RyanNorooz/lang-box/runs/5392042580?check_suite_focus=true#step:9:43)_701Z-debug.log
Error: Process completed with exit code 1.

is this only happening for me or is it a bug?

@inokawa
Copy link
Owner

inokawa commented Mar 3, 2022

Hi, are your secret tokens still alive?

@RyanNorooz
Copy link
Author

the token was created with no expiration date so i guess it's still alive.
no config was changed in the past few months.

@qilip
Copy link

qilip commented Mar 24, 2022

Hello. I also had the same problem and tried to find the cause.
My guess is that if I don't write any code within the date range that the action collects, there is nothing to output and an error occurs.
After committing any modifications, performing the action again worked successfully.

@RyanNorooz
Copy link
Author

My guess is that if I don't write any code within the date range that the action collects, there is nothing to output and an error occurs.
After committing any modifications, performing the action again worked successfully.

I can confirm the issue was that nothing was committed in the past month (approximately) and this caused the error.

Simply committing to your repositories fixes the issue.

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