egh / zotxt

zotxt: a Zotero extension for text
http://gitlab.com/egh/zotxt
GNU General Public License v3.0
326 stars 16 forks source link

endpoint not found(6.0.2) #35

Open cntommy opened 2 years ago

cntommy commented 2 years ago

When I use "C-c " i" command in emacs, an error occur Caught error: (error http 500) [error] request--callback: peculiar error: 500 [error] request-default-error-callback: http://127.0.0.1:23119/zotxt/version error deferred error : (error "Zotxt version endpoint not found; is Zotero running and zotxt installed?") After using zotero debugging and searching the logs for zotxt, I only found zotero(5)(+0089958): GET /zotxt/version HTTP/1.1 Host: 127.0.0.1:23119 User-Agent: curl/7.78.0 Accept: */* Besides, when I execute "C-c " i" in emacs, there is no response in the zotero [debugging] terminal, but "$ curl http://127.0.0.1:23119/zotxt/version" get response: { "version": "6.0.2" }% "$curl 'http://localhost:23119/zotxt/search?q={word_for_query}&format=bibliography'" also get a correct response. I wonder how to solve this, thanks!

environment: macos Monterey 12.6 (21G115)=> Emacs Version 28.2 (9.0)=> zotero 6.0.15

cntommy commented 2 years ago

I think I should have found the reason, I turn on proxy before opening emacs $export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; $emacs but I still don't know why this can affect zotxt