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

All end points are executing the default action #32

Open
SergiuToporjinschi opened this issue Mar 28, 2023 · 5 comments
Open

All end points are executing the default action #32

SergiuToporjinschi opened this issue Mar 28, 2023 · 5 comments

Comments

@SergiuToporjinschi
Copy link

SergiuToporjinschi commented Mar 28, 2023

I have windows 11
no matter what request I trigger is executing the default action (Sys tray command).
I'm using a secret.

@karpach
Copy link
Owner

karpach commented Mar 29, 2023

Can you provide a sample url? What do you use to trigger request, curl?

@CeltiCat
Copy link

CeltiCat commented May 4, 2023

I second this issue.
I use http://ipadress:5001/secret/hibernate or http://ipadress:5001/secret/hibernate/ and it reboots (which is the Sys Tray command on the PC).
The "remote-host-name" doesn't work, IP adress does. Maybe I didn't understand the instruction right at first...
I use your tool in a public library, thanks for your work !

@karpach
Copy link
Owner

karpach commented Jul 12, 2023

Can you try a different command http://ipadress:5001/secret/lock or ttp://ipadress:5001/secret/suspend? The hibernate should be enabled in Windows, it is possible that it is disabled and just causes reboot.

I just tried http://ipadress:5001/secret/lock on my Windows 11 and it works fine.

"remote-host-name" depends on network configuration. Sometimes it does not work even on professionally configured corporate networks. IP address also might not work if you are in a different subnet.

@gialla1987
Copy link

gialla1987 commented Jul 22, 2023

same here, no matter what command i specify after the secret the default action is executed.
i am sure it worked as expected before

EDIT:
I found out that clearing the secret code field, restarting my pc and re-entering the code fixes this issue.

if this does not work for you, it's worth mentioning that previously I accidentally caused the application to crash by saving the settings with the "System Tray Command" field empty. this might have caused some files to be recreated automatically

SECOND (SAD) EDIT:
The above tips worked for less than 24 hours, the issue came back the day after unluckily.

@HerMajestyDrMona
Copy link

Same issue here.

I noticed that the address can not end with the final slash /:

In my custom .bat script, this one is always hibernating for me:

set DelayStr=?delay=0
set URL="http://%remote_shutdown_desktop_ip%:%remote_shutdown_port%/%remote_shutdown_secret%/%WhatToDo%/%DelayStr%"
curl %URL%

And this one:

set DelayStr=?delay=0
set URL="http://%remote_shutdown_desktop_ip%:%remote_shutdown_port%/%remote_shutdown_secret%/%WhatToDo%%DelayStr%"
curl %URL%

Works as intended.

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

5 participants