XPath always invalid
Expected Behavior
XPath filters should return a detected value
Actual Behavior
The "Live Preview" shows "Invalid XPath query: [...]" and the tag doesn't work.
Reproduction Steps
The response where I want to use XPath looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<Process timestamp="2024-09-25T13:16:26+00:00">
<Request BusinessID="2d35aaad-018c-4710-93fa-0f642ce1febb">
<Confirmation/>
</Request>
</Process>
I used http://xpather.com/ to verify my XPath, which is //Request/@BusinessID and works there.
I also tried other queries and the only one where I didn't get the error was /*.
Is there an existing issue for this?
- [X] I have searched the issue tracker for this problem.
Insomnia Version
10.0.0
What operating system are you using?
Windows
Operating System Version
Windows 11
Installation method
download
I can confirm this issue. This worked prior to updating my client last week (I have automatic updates disabled to prevent this sort of thing.) Using the recommendation from @xxluke I also verified the XPath filter on https://xpather.com.
This breaks my entire collection. How is this still broken for nine months?
I had the same issue on v 11.2.0, reverted to v 11.0.2 and it worked as intended
I can confirm the same issue on 11.2.0, reverting to v11.0.2 worked as @aldodavalost stated.
Can confirm on 11.3.0
yes, the same problrm on version v11.6.1 on macOS
Hi! any update regarding problem in above? Thanks in advance!
Confirmed to still being an issue on the latest MacOS version:
Version: Insomnia 12.0.0 Build date: 10/31/2025 OS: Darwin arm64 24.6.0 Electron: 38.4.0 Node: 22.20.0 Node ABI: 139 V8: 14.0.365.10-electron.0 Architecture: arm64