An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Version: 0.11.2
Traceback (most recent call last):
File "/nix/store/l9knvrkhb69qzny5bjhwdc095dm1yym9-http-prompt-0.11.2/bin/.http-prompt-wrapped", line 12, in <module>
sys.exit(cli())
File "/nix/store/pnfz195p4c3j10b46dr1kl1q24bcjvwz-python2.7-click-6.7/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/nix/store/pnfz195p4c3j10b46dr1kl1q24bcjvwz-python2.7-click-6.7/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/nix/store/pnfz195p4c3j10b46dr1kl1q24bcjvwz-python2.7-click-6.7/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/nix/store/pnfz195p4c3j10b46dr1kl1q24bcjvwz-python2.7-click-6.7/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/nix/store/l9knvrkhb69qzny5bjhwdc095dm1yym9-http-prompt-0.11.2/lib/python2.7/site-packages/http_prompt/cli.py", line 124, in cli
context = Context(url, spec=spec)
File "/nix/store/l9knvrkhb69qzny5bjhwdc095dm1yym9-http-prompt-0.11.2/lib/python2.7/site-packages/http_prompt/context/__init__.py", line 32, in __init__
self.root.add_path(*path_tokens)
File "/nix/store/l9knvrkhb69qzny5bjhwdc095dm1yym9-http-prompt-0.11.2/lib/python2.7/site-packages/http_prompt/tree.py", line 38, in add_path
name = path[0]
IndexError: tuple index out of range
Tried
v0.11.2
on a spec generated by PostgREST(spec formated and validated with https://bigstickcarpet.com/swagger-parser/www/index.html), andhttp-prompt
failed with:Here's a sample spec:
Spec
When removing the
paths."/"
object, http-prompt works normally.