paleolimbot / rbbt

R Interface to the Better BiBTex Zotero Connector
145 stars 26 forks source link

TypeError: "displayOptions2" is null with BBT 6.7.18 upgrade #34

Open wmoldham opened 2 years ago

wmoldham commented 2 years ago

Thank you for creating this neat package. I have been using rbbt::bbt_update_bib to update my library.json as I add citation keys to my manuscript. I began receiving the error TypeError: "displayOptions2" is null. When I downgraded BBT for Zotero to version 6.7.17 from 6.7.18, functionality was restored.

paleolimbot commented 2 years ago

Thanks for posting! Do you know which method this is coming from (maybe call rbbt::bbt_update_bib("your_file_name") from the console, possibly followed by traceback())?

wmoldham commented 2 years ago

Looks like it's coming from rbbt::bbt_call_json_rpc():

> rbbt::bbt_call_json_rpc(
      "item.export", 
      as.list(unique(as.character(keys))), 
      "csljson", 
      getOption("rbbt.default.library_id", 1)
    )

$jsonrpc
[1] "2.0"

$error
$error$code
[1] -32603

$error$message
[1] "TypeError: displayOptions2 is null"

$id
NULL

I hope this is helpful. Thank you.

paleolimbot commented 2 years ago

@retorquere any ideas? I don't see displayOptions2 listed anywhere on the JSON-RPC docs?

retorquere commented 2 years ago

6.7.19 has a fix for this. displayOptions2 is a compilation artifact.