lang-box icon indicating copy to clipboard operation
lang-box copied to clipboard

Script failure

Open RyanNorooz opened this issue 2 years ago • 4 comments

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?

RyanNorooz avatar Mar 02 '22 13:03 RyanNorooz

Hi, are your secret tokens still alive?

inokawa avatar Mar 03 '22 14:03 inokawa

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

RyanNorooz avatar Mar 03 '22 16:03 RyanNorooz

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.

qilip avatar Mar 24 '22 11:03 qilip

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.

RyanNorooz avatar Apr 18 '22 10:04 RyanNorooz