insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

XPath always invalid

Open xxluke opened this issue 1 year ago • 7 comments

Expected Behavior

XPath filters should return a detected value

Actual Behavior

The "Live Preview" shows "Invalid XPath query: [...]" and the tag doesn't work.

Screenshot

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?

Insomnia Version

10.0.0

What operating system are you using?

Windows

Operating System Version

Windows 11

Installation method

download

xxluke avatar Sep 26 '24 07:09 xxluke

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.

Image

This breaks my entire collection. How is this still broken for nine months?

dirkniblick avatar Jun 04 '25 14:06 dirkniblick

I had the same issue on v 11.2.0, reverted to v 11.0.2 and it worked as intended

aldodavalost avatar Jun 13 '25 15:06 aldodavalost

I can confirm the same issue on 11.2.0, reverting to v11.0.2 worked as @aldodavalost stated.

godlyatheist avatar Jun 24 '25 15:06 godlyatheist

Can confirm on 11.3.0

Image

iRomul avatar Jul 14 '25 07:07 iRomul

yes, the same problrm on version v11.6.1 on macOS

Image

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

wimulkeman-friday avatar Nov 17 '25 16:11 wimulkeman-friday