hurl-mode icon indicating copy to clipboard operation
hurl-mode copied to clipboard

hurl lisp error: (search-failed "* Response body:")

Open alexvorobiev opened this issue 11 months ago • 3 comments

I looks like hurl returns formatted/colorized output. I see this in the *hurl-responce* buffer:

[1;34m*[0m [1mResponse body:[0m
[1;34m*[0m

Note, there is no space between * and Responce body. Running with --no-color fixes the issue. What is the correct place to add the option?

alexvorobiev avatar May 12 '25 18:05 alexvorobiev

Me too, I suspect this broke sometime with Hurl 6.1.1 (as I updated my work laptop with it and am experiencing these problems, but my personal laptop with an older hurl version doesn't show this)

rwilcox avatar May 14 '25 14:05 rwilcox

For now I just added " --no-color" on the relevant line https://github.com/JasZhe/hurl-mode/blob/main/hurl-mode.el#L711.

alexvorobiev avatar May 14 '25 16:05 alexvorobiev

Thanks for letting me know, I'll take a look when I'm back from vacation.

JasZhe avatar May 24 '25 14:05 JasZhe

Interesting.. I just upgraded to hurl 6.1.1 and I'm not seeing any issues at least using this api.

GET https://dog.ceo/api/breeds/list/all
HTTP 200
[Captures]
aus_breed: jsonpath "$.message.australian[1]"
[Asserts]
jsonpath "$.message.australian[*]" count == 2

JasZhe avatar Jun 16 '25 22:06 JasZhe

@alexvorobiev @rwilcox can you guys send me what hurl version you're using

$ hurl --version
hurl 6.1.1 (x86_64-apple-darwin22.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0
Features (libcurl):  alt-svc AsynchDNS HSTS HTTP2 IPv6 Largefile libz NTLM SPNEGO SSL UnixSockets
Features (built-in): brotli

and if possible some sort of request that i can use to reproduce?

JasZhe avatar Jun 16 '25 23:06 JasZhe

I'm sorry - I'm up to date with the latest hurl-mode (and running hurl 6.1.1).

I've been using hurl mode (in org mode) a lot over the last week and haven't seen this issue anymore

rwilcox avatar Jun 19 '25 02:06 rwilcox