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

apprise windows error #285

Open
viperdriver2000 opened this issue Jan 5, 2024 · 1 comment · May be fixed by #318
Open

apprise windows error #285

viperdriver2000 opened this issue Jan 5, 2024 · 1 comment · May be fixed by #318

Comments

@viperdriver2000
Copy link

I am currently using the script on Windows. I have created a small batch script for this purpose.

It is working fine so far. Occasionally, there is a capture prompt from Epic, but that's okay.

I have configured it to receive a notification via apprise, but it is not working.

Current free game: Marvel's Guardians of the Galaxy
Not in library yet! Click GET.
Claimed successfully!
error: Command failed: apprise 'ntfy://[USERNAME]:[PASSWORD]@192.168.84.56:8150/free-games-claimer' -i html -b epic-games ([USERNAME]):
- Marvel's Guardians of the Galaxy (claimed)

node:internal/errors:956
const err = new Error(message);
^

Error: Command failed: apprise 'ntfy://[USERNAME]:[PASSWORD]@192.168.84.56:8150/free-games-claimer' -i html -b epic-games ([USERNAME]):
- Marvel's Guardians of the Galaxy (claimed)

at genericNodeError (node:internal/errors:956:15)
at wrappedFn (node:internal/errors:510:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {

code: 1,
killed: false,
signal: null,
cmd: apprise 'ntfy://[USERNAME]:[PASSWORD]@192.168.84.56:8150/free-games-claimer' -i html -b epic-games ([USERNAME]):<br>- <a href="https://store.epicgames.com/en-US/p/marvels-guardians-of-the-galaxy">Marvel&#039;s Guardians of the Galaxy</a> (claimed)
}

Node.js v21.5.0

When I manually execute the command, I also receive an error.

The system cannot find the specified file.

If I change the command to this, it works.

apprise ntfy://[USERNAME]:[PASSWORD]@192.168.84.56:8150/free-games-claimer -i html -b "epic-games ([USERNAME]):
- Marvel's Guardians of the Galaxy (claimed)"

However, I can't find the part in the code where I need to make adjustments. Can someone help me with this?
thanks

@niscolas
Copy link

Encountered the same error, although it just worked again afterwards, I didn't make any changes. Not sure what may be the cause, but seems to be either an edge-case situation or not 100% repro rate

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

Successfully merging a pull request may close this issue.

2 participants