You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an invalid URL is passed to useFetch, it throws an exception directly. This error isn't captured in the returned error field, nor can it be handled via the provided onError callback.
Throwing exceptions in react hooks also goes against best practices.
Steps To Reproduce
call useFetch with invalid URL,such as http://:8080
@CzBiX can you tell which version of @raycast/api and @raycast/utils you are using? I tested this invalid url against the useFetch smoketest (see tests/ folder) and it does return an error in the error field as well as the onError. Also, is this on Windows or on Mac?
Activity
CzBiX commentedon Dec 13, 2025
link to raycast/extensions#23598
j3lte commentedon Dec 15, 2025
@CzBiX can you tell which version of
@raycast/apiand@raycast/utilsyou are using? I tested this invalid url against theuseFetchsmoketest (seetests/folder) and it does return an error in theerrorfield as well as theonError. Also, is this on Windows or on Mac?CzBiX commentedon Dec 15, 2025
@j3lte it's latest version. you can also try it in the current proxmox extension.
fill the server url in configure with invalid url. then open the command.
mathieudutour commentedon Aug 7, 2026
This should be fixed in 2.3
Bump @raycast/utils to 2.3.1
Update proxmox extension - add multiple servers support (#30125)