Hello, I'm not sure if this is a bug in ob-restclient, ob-plantuml, or Babel. If someone can help me figure out where, I can move this report to GitHub (if ob-restclient) - otherwise I think it remains here. I cannot use ob-plantuml if results are cached. See example: #+NAME: cache-no #+BEGIN_SRC restclient :jq .[0].address :cache no GET https://jsonplaceholder.typicode.com/users #+END_SRC #+RESULTS: cache-no #+BEGIN_SRC js { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } } #+END_SRC #+BEGIN_SRC plantuml :noweb yes :file cache-no.png @startjson <<cache-no()>> @endjson #+END_SRC #+RESULTS: [[file:cache-no.png]] The above graphic is generated by plantuml. #+NAME: cache-yes #+BEGIN_SRC restclient :jq .[0].address :cache yes GET https://jsonplaceholder.typicode.com/users #+END_SRC #+RESULTS[(2022-09-20 15:52:59) c41e0371fd392d6fbfd07ff4078abf8c387885ea]: cache-yes #+BEGIN_SRC js { "street": "Kulas Light", "suite": "Apt. 556", "city": "Gwenborough", "zipcode": "92998-3874", "geo": { "lat": "-37.3159", "lng": "81.1496" } } #+END_SRC #+BEGIN_SRC plantuml :noweb yes :file cache-yes.png @startjson <<cache-yes()>> @endjson #+END_SRC #+RESULTS: [[file:cache-yes.png]] The above graphic is an error message. It states, "Your data does not sound like JSON data". -k. n
Ken Mankoff <mankoff@gmail.com> writes: > #+BEGIN_SRC plantuml :noweb yes :file cache-yes.png > @startjson > <<cache-yes()>> > @endjson > #+END_SRC > > #+RESULTS: > [[file:cache-yes.png]] > > The above graphic is an error message. It states, > > "Your data does not sound like JSON data". I tried your example it is working just fine on my side. I suggest you to try reproducing starting from Emacs -Q. See https://orgmode.org/manual/Feedback.html. You may also find https://github.com/alphapapa/with-emacs.sh useful to install packages into a temporary clean Emacs instance. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92
Hi Ihor,
Thank you for your reply. I apologize for not doing a more thorough test with '-Q'. I'll try to find the problem in my setup.
-k.
On 2022-09-22 at 22:02 -04, Ihor Radchenko <yantar92@gmail.com> wrote:
> Ken Mankoff <mankoff@gmail.com> writes:
>
>> #+BEGIN_SRC plantuml :noweb yes :file cache-yes.png
>> @startjson
>> <<cache-yes()>>
>> @endjson
>> #+END_SRC
>>
>> #+RESULTS:
>> [[file:cache-yes.png]]
>>
>> The above graphic is an error message. It states,
>>
>> "Your data does not sound like JSON data".
>
> I tried your example it is working just fine on my side.
> I suggest you to try reproducing starting from Emacs -Q.
> See https://orgmode.org/manual/Feedback.html. You may also find
> https://github.com/alphapapa/with-emacs.sh useful to install packages
> into a temporary clean Emacs instance.