I got an error when I’m inserting Zotero ref to Emacs by M-x org-zotxt-insert-reference-link RET

[error] request--callback: peculiar error: 500

I got the error of zotxt by follow the instruction Debug Output Logging:

(5)(+0000003): HTTP/1.0 500 Internal Server Error X-Zotero-Version: 5.0.96.3 X-Zotero-Connector-API-Version: 2 Content-Type: text/plain; charset=UTF-8 csl is nullTypeError: csl is null buildBibliographyResponse/responseData<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Users/wanghui/Library/Application%20Support/Zotero/Profiles/34hkbjfm.default/extensions/zotxt@e6h.org.xpi!/bootstrap.js:220:9 buildBibliographyResponse@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Users/wanghui/Library/Application%20Support/Zotero/Profiles/34hkbjfm.default/extensions/zotxt@e6h.org.xpi!/bootstrap.js:219:24 buildResponse/<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Users/wanghui/Library/Application%20Support/Zotero/Profiles/34hkbjfm.default/extensions/zotxt@e6h.org.xpi!/bootstrap.js:156:20 tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16 module.exports/Promise.prototype._settlePromiseFromHandler@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:547:13 module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:604:13 module.exports/Promise.prototype._settlePromise0@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:649:5 module.exports/Promise.prototype._settlePromises@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:729:13 module.exports/Promise.prototype._fulfill@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:673:13 module.exports/PromiseArray.prototype._resolve@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise_array.js:127:5 module.exports/MappingPromiseArray.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/map.js:108:13 module.exports/Promise.prototype._settlePromise@resource://zotero/loader.jsm -> resource://zotero/bluebird/promise.js:609:17 module.exports/Promise… (3613 chars)

And I found this issue: zotxt api does not work for non-latin references. By looking at the reply, I think it’s the same issue I’m got: I did’nt install the style which I setted in my Emacs config:

(use-package org-zotxt
  :straight (:host github :repo "egh/zotxt-emacs")
  :bind
  (:map org-mode-map
        ("C-c z i" . org-zotxt-insert-reference-link)
        ("C-c z a" . org-zotxt-open-attachment))
  :custom
  (zotxt-default-bibliography-style "mkbehr-short")
  :hook
  (org-mode . org-zotxt-mode))

By removing the :custom, issue resolved:

(use-package org-zotxt
  :straight (:host github :repo "egh/zotxt-emacs")
  :bind
  (:map org-mode-map
        ("C-c z i" . org-zotxt-insert-reference-link)
        ("C-c z a" . org-zotxt-open-attachment))
  :hook
  (org-mode . org-zotxt-mode))