ob-http icon indicating copy to clipboard operation
ob-http copied to clipboard

Does not work with Tramp

Open garython opened this issue 4 years ago • 0 comments

I am trying to execute through tramp with multiple hops or a remote server but it does not work.

This does not work

#+BEGIN_SRC http :pretty POST https://myserver.com/process 'content-type: application/json'

{ "input" : "test" } #+END_SRC

Error is : apply: Cannot redirect stderr: No such file or directory, /ssh:myserver.com:/tmp/curl-error1TEJZC

But executing curl through sh does work through tramp. I guess the curl is executed on the remote host. #+BEGIN_SRC sh curl -X POST https://myserver.com/process -d '{"input" : "test"}' #+END_SRC

Am I missing something ? Are there any config which needs to be setup to use ob-http with tramp ?

garython avatar Jul 11 '21 13:07 garython