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

Zotero Citations: could not connect to... #2

Closed
atanasj opened this issue Aug 1, 2019 · 6 comments
Closed

Zotero Citations: could not connect to... #2

atanasj opened this issue Aug 1, 2019 · 6 comments

Comments

@atanasj
Copy link

atanasj commented Aug 1, 2019

Hi,

I am getting the below error:

image

Any idea why this might be happening? Zotero is definitely running...

Thanks in advance for your help.

@mblode
Copy link
Owner

mblode commented Aug 1, 2019

I think following the "Referencing" section of this blog post may help you get the Zotero picker installed 👍

https://raphaelkabo.com/blog/posts/markdown-to-word/#referencing

@atanasj
Copy link
Author

atanasj commented Aug 2, 2019

Thanks for that. I followed the instructions, however this still doesn't work. When I try and the extension I am still getting the same error. Additionally, whey I try and run the services as set out in the link you provided, the error I get is com.automator.runner.xpc is not allowed to send keystrokes. This is happening in other apps as well, however in vscode I get the electron pop-up window too. I have a workflow that I have been using for a ages with Alfred.app where I run and .applescript and paste in the better-bibtex key from Zotero, which worked similarly to your extension. I think the conflict between .applescript and vscode is a known issue (see here). See below for the pop-up messages I am getting.

image

Here you can see the error message with both vscode and Zotero open when I try and run the extension.

image

Any ideas what I can do to resolve this issues?

| ~ @ uroboros (atanas)
| => sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G84
________________________________________________________________________________
| ~ @ uroboros (atanas)
| => code --version
1.36.1
2213894ea0415ee8c85c5eea0d0ff81ecc191529
x64

@mblode
Copy link
Owner

mblode commented Aug 2, 2019

I think I've discovered the issue:
Note that as of Zotero 5.0.71, access to this URL will no longer work from the browser for security reasons; curl and other programmatic access will work if you make sure you send a User-Agent header (curl does so by default).

I'm going to work on a fix now 👍

@atanasj
Copy link
Author

atanasj commented Aug 2, 2019

Awesome, thanks! I look forward to the fix!

@mblode
Copy link
Owner

mblode commented Aug 2, 2019

The issue has been fixed by using the latest Zotero beta: https://www.zotero.org/support/dev_builds 🎉

@mblode mblode closed this as completed Aug 2, 2019
@atanasj
Copy link
Author

atanasj commented Aug 2, 2019

Great, that works now, thanks! However, after inserting the citation the focus changes to Zotero. Is that the expected behaviour? It would be great if the focus could return back to vscode.

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

2 participants