sindresorhus / Actions

⚙️ Supercharge your shortcuts
https://sindresorhus.com/actions
2.68k stars 115 forks source link

Not require network permission #199

Open ic0xgkk opened 11 months ago

ic0xgkk commented 11 months ago

Description

I want to use Is Web Server Reachable action to check my web server reachable. But when I add it to my shortcuts, it always return false even through I can open it in safari. I think it may cause by network permission but no network requirement switch in iOS Settings. After I touch the Send Feedback button in app and it requires network permission, and the action works fine and return true in my shortcuts finally.

Is it may be a bug?

macOS/iOS version

iOS 17.1.2 (21B101)

Shortcut URL

No response

ic0xgkk commented 11 months ago

And, why it always return false if I use Is Web Server Reachable to check http://100.64.10.2:8080? But Is Host Reachable works fine.

IMG_4368

sindresorhus commented 11 months ago

Is it may be a bug?

Maybe an iOS bug. The Shortcuts app is supposed to show the prompt when you run the action.

sindresorhus commented 11 months ago

And, why it always return false if I use Is Web Server Reachable to check http://100.64.10.2:8080? But Is Host Reachable works fine.

Try turning off the "require success" setting.

ic0xgkk commented 11 months ago

Is it may be a bug?

Maybe an iOS bug. The Shortcuts app is supposed to show the prompt when you run the action.

Okay, got it.

ic0xgkk commented 11 months ago

And, why it always return false if I use Is Web Server Reachable to check http://100.64.10.2:8080? But Is Host Reachable works fine.

Try turning off the "require success" setting.

I tried turn off the "require success" and turn on the "Use GET instead of HEAD", but it still shows me "false".