{"action":"created","issue":{"url":"https://api.github.com/repos/jkitchin/org-ref/issues/150","repository_url":"https://api.github.com/repos/jkitchin/org-ref","labels_url":"https://api.github.com/repos/jkitchin/org-ref/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/jkitchin/org-ref/issues/150/comments","events_url":"https://api.github.com/repos/jkitchin/org-ref/issues/150/events","html_url":"https://github.com/jkitchin/org-ref/issues/150","id":139517935,"number":150,"title":"doi-utils-add-bibtex-entry-from-doi problems","user":{"login":"liuzy","id":1491241,"avatar_url":"https://avatars.githubusercontent.com/u/1491241?v=3","gravatar_id":"","url":"https://api.github.com/users/liuzy","html_url":"https://github.com/liuzy","followers_url":"https://api.github.com/users/liuzy/followers","following_url":"https://api.github.com/users/liuzy/following{/other_user}","gists_url":"https://api.github.com/users/liuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/liuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuzy/subscriptions","organizations_url":"https://api.github.com/users/liuzy/orgs","repos_url":"https://api.github.com/users/liuzy/repos","events_url":"https://api.github.com/users/liuzy/events{/privacy}","received_events_url":"https://api.github.com/users/liuzy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-09T09:07:41Z","updated_at":"2016-03-10T00:38:26Z","closed_at":null,"body":"when I use the doi-utlils-add-bibtex-entry-from-doi, I get the messages: \"Contacting host: dx.doi.org:80\r\ndoi-utils-doi-to-bibtex-string: Wrong type argument: integer-or-marker-p, nil\" .  What's the matter?"},"comment":{"url":"https://api.github.com/repos/jkitchin/org-ref/issues/comments/194589633","html_url":"https://github.com/jkitchin/org-ref/issues/150#issuecomment-194589633","issue_url":"https://api.github.com/repos/jkitchin/org-ref/issues/150","id":194589633,"user":{"login":"liuzy","id":1491241,"avatar_url":"https://avatars.githubusercontent.com/u/1491241?v=3","gravatar_id":"","url":"https://api.github.com/users/liuzy","html_url":"https://github.com/liuzy","followers_url":"https://api.github.com/users/liuzy/followers","following_url":"https://api.github.com/users/liuzy/following{/other_user}","gists_url":"https://api.github.com/users/liuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/liuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuzy/subscriptions","organizations_url":"https://api.github.com/users/liuzy/orgs","repos_url":"https://api.github.com/users/liuzy/repos","events_url":"https://api.github.com/users/liuzy/events{/privacy}","received_events_url":"https://api.github.com/users/liuzy/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T00:38:26Z","updated_at":"2016-03-10T00:38:26Z","body":"I typed \"alt-x toggle-debug-on-error\", and tried to add a doi, got the error messages:\r\n\"Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)\r\n  doi-utils-get-json-metadata(\"10.1021/jp511426q\")\r\n  doi-utils-doi-to-bibtex-string(\"10.1021/jp511426q\")\r\n  doi-utils-insert-bibtex-entry-from-doi(\"10.1021/jp511426q\")\r\n  doi-utils-add-bibtex-entry-from-doi(\"10.1021/jp511426q\" \"~/Scholar/references.bib\")\r\n  call-interactively(doi-utils-add-bibtex-entry-from-doi record nil)\r\n  command-execute(doi-utils-add-bibtex-entry-from-doi record)\r\n  (if helm-M-x-always-save-history nil (command-execute sym-com (quote record)))\r\n  (let ((prefix-arg (or helm-current-prefix-arg arg))) (if helm-M-x-always-save-history nil (command-execute sym-com (quote record))) (setq extended-command-history (cons command-name (delete command-name extended-command-history))) (if helm-M-x-always-save-history (progn (command-execute sym-com (quote record)))))\r\n  (let ((sym-com (and (stringp command-name) (intern-soft command-name)))) (setq this-command sym-com real-this-command sym-com) (let ((prefix-arg (or helm-current-prefix-arg arg))) (if helm-M-x-always-save-history nil (command-execute sym-com (quote record))) (setq extended-command-history (cons command-name (delete command-name extended-command-history))) (if helm-M-x-always-save-history (progn (command-execute sym-com (quote record))))))\r\n  helm-M-x(nil \"doi-utils-add-bibtex-entry-from-doi\")\r\n  call-interactively(helm-M-x nil nil)\r\n  command-execute(helm-M-x)\"."}}