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

Getting the following error, any ideas? #40

Open
Degiorgio opened this issue Dec 5, 2017 · 1 comment
Open

Getting the following error, any ideas? #40

Degiorgio opened this issue Dec 5, 2017 · 1 comment

Comments

@Degiorgio
Copy link

Degiorgio commented Dec 5, 2017

Doing:
zotcli add-note "bla bla"

Getting the following error, any ideas?

pyzotero.zotero_errors.HTTPError:
Code: 500
URL: https://api.zotero.org/users/4509759/items/H2ZC2NX6
Method: PATCH
Response: An error occurred

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/k/anaconda3/bin/zotcli", line 11, in
sys.exit(cli())
File "/home/k/anaconda3/lib/python3.6/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/k/anaconda3/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/k/anaconda3/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/k/anaconda3/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/k/anaconda3/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/k/anaconda3/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/k/anaconda3/lib/python3.6/site-packages/zotero_cli/cli.py", line 247, in add_note
ctx.obj.create_note(item_id, note_body)
File "/home/k/anaconda3/lib/python3.6/site-packages/zotero_cli/backend.py", line 321, in create_note
fp.write(raw_data['text'].encode('utf-8'))
NameError: name 'raw_data' is not defined

@zhangbingxyx
Copy link

Same ,did you solved this problem?

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