Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nil key when using org-zotxt-open-attachment #37

Open
egh opened this issue Feb 17, 2020 · 5 comments
Open

nil key when using org-zotxt-open-attachment #37

egh opened this issue Feb 17, 2020 · 5 comments

Comments

@egh
Copy link
Owner

egh commented Feb 17, 2020

First of all, thanks for your awesome extension!

I hit the following bug:
When I visit http://127.0.0.1:23119/zotxt/ I get the message No endpoint found. In emacs org-zotxt-insert-reference-link seems to work fine, but org-zotxt-open-attachment results in

[error] request--callback: peculiar error: 400
Caught error: (error "#s(request-response 400 nil nil (error http 400) parse-error \"http://127.0.0.1:23119/zotxt/items?key=nil&format=paths\" t (:params ((\"key\") (\"format\" . \"paths\")) :parser json-read :success #[128 \"\\302\\300\\303\\301�\\\"\\\"\\207\" [#[(d &rest args) \"\\302�\\303	\\304\\\"\\\"\\207\" [d args deferred:callback-post plist-get :response] 5] (#s(deferred identity deferred:default-errorback deferred:default-cancel #s(deferred (lambda (&rest --cl-rest--) (apply (function #[(G107 G108 response) \"\\302\\304�!	>\\204�\0\\305\\306\\307�D\\\"\\210�\\310H\\311\\234\\236A�\\312\\313
!�J\\\")\\207\" [response cl-struct-request-response-tags paths G107 type-of signal wrong-type-argument request-response 3 0 org-open-file org-zotxt-choose-path] 5]) (quote --arg--) (quote --item-id--) --cl-rest--)) deferred:default-errorback deferred:default-cancel #s(deferred deferred:default-callback zotxt--deferred-handle-error deferred:default-cancel nil nil nil) nil nil) nil nil)) apply append] 6 \"

(fn &rest ARGS2)\"] :error #[128 \"\\302\\300\\303\\301�\\\"\\\"\\207\" [#[(d &rest args) \"\\302�\\303	\\304\\\"\\\"\\207\" [d args deferred:errorback-post plist-get :response] 5] (#s(deferred identity deferred:default-errorback deferred:default-cancel #s(deferred (lambda (&rest --cl-rest--) (apply (function #[(G107 G108 response) \"\\302\\304�!	>\\204�\0\\305\\306\\307�D\\\"\\210�\\310H\\311\\234\\236A�\\312\\313
!�J\\\")\\207\" [response cl-struct-request-response-tags paths G107 type-of signal wrong-type-argument request-response 3 0 org-open-file org-zotxt-choose-path] 5]) (quote --arg--) (quote --item-id--) --cl-rest--)) deferred:default-errorback deferred:default-cancel #s(deferred deferred:default-callback zotxt--deferred-handle-error deferred:default-cancel nil nil nil) nil nil) nil nil)) apply append] 6 \"

(fn &rest ARGS2)\"] :url \"http://127.0.0.1:23119/zotxt/items?key=nil&format=paths\" :response #0 :encoding utf-8) #<killed buffer> \"HTTP/1.0 400 Bad Request
X-Zotero-Version: 5.0.82
X-Zotero-Connector-API-Version: 2
Content-Type: text/plain; charset=UTF-8

which I think is related to the broken endpoint.

I'm using zotero 5.0.82, zotxt 5.0.5 and org-zotxt-mode 20200120.1950 from melpa on Centos 7 and emacs-26.3.

@egh egh changed the title nil key when using `zotxt- nil key when using org-zotxt-open-attachment r Feb 17, 2020
@egh egh changed the title nil key when using org-zotxt-open-attachment r nil key when using org-zotxt-open-attachment Feb 17, 2020
@egh
Copy link
Owner Author

egh commented Feb 17, 2020

@bluewww can you show the org entry you are looking at when you get this error? Can you verify that the content is still in your zotero library?

@AlessandroW
Copy link

AlessandroW commented Sep 13, 2020

On my machine the latest release does work when opening the file with M-x org-zotxt-open-attachment.
However, the hyperlink can't be opened and I get the error message:

[error] request--callback: peculiar error: 500
[error] request-default-error-callback: http://127.0.0.1:23119/zotxt/select error

Opening http://127.0.0.1:23119/zotxt in the browser leads to the message Endpoint not found.

Is this related or a different issue?

@egh
Copy link
Owner Author

egh commented Sep 13, 2020

Opening http://127.0.0.1:23119/zotxt in the browser leads to the message Endpoint not found.

This is expected.

I can't reproduce the problem you are seeing. Can you show me what link doesn't work for you? Thanks!

@LawrenceAusten
Copy link

I am experiencing the same issue. I rolled back to 5.1.1 and everything works as before, so I guess something changed with 5.1.2. Thank you very much for creating such a useful piece of software!

@egh
Copy link
Owner Author

egh commented Feb 22, 2021

Thanks for the useful into @LawrenceAusten ! I'll look into that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants