{"action":"created","issue":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python/issues/15","repository_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python","labels_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python/issues/15/comments","events_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python/issues/15/events","html_url":"https://github.com/openfoodfacts/openfoodfacts-python/issues/15","id":186339613,"number":15,"title":"JSONDecodeError: Expecting value: line 1 column 1 (char 0)","user":{"login":"teolemon","id":1689815,"avatar_url":"https://avatars1.githubusercontent.com/u/1689815?v=4","gravatar_id":"","url":"https://api.github.com/users/teolemon","html_url":"https://github.com/teolemon","followers_url":"https://api.github.com/users/teolemon/followers","following_url":"https://api.github.com/users/teolemon/following{/other_user}","gists_url":"https://api.github.com/users/teolemon/gists{/gist_id}","starred_url":"https://api.github.com/users/teolemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teolemon/subscriptions","organizations_url":"https://api.github.com/users/teolemon/orgs","repos_url":"https://api.github.com/users/teolemon/repos","events_url":"https://api.github.com/users/teolemon/events{/privacy}","received_events_url":"https://api.github.com/users/teolemon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-31T17:03:39Z","updated_at":"2018-03-29T13:28:49Z","closed_at":null,"author_association":"OWNER","body":""},"comment":{"url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python/issues/comments/377234934","html_url":"https://github.com/openfoodfacts/openfoodfacts-python/issues/15#issuecomment-377234934","issue_url":"https://api.github.com/repos/openfoodfacts/openfoodfacts-python/issues/15","id":377234934,"user":{"login":"Anubhav-Bhargava","id":19328720,"avatar_url":"https://avatars3.githubusercontent.com/u/19328720?v=4","gravatar_id":"","url":"https://api.github.com/users/Anubhav-Bhargava","html_url":"https://github.com/Anubhav-Bhargava","followers_url":"https://api.github.com/users/Anubhav-Bhargava/followers","following_url":"https://api.github.com/users/Anubhav-Bhargava/following{/other_user}","gists_url":"https://api.github.com/users/Anubhav-Bhargava/gists{/gist_id}","starred_url":"https://api.github.com/users/Anubhav-Bhargava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anubhav-Bhargava/subscriptions","organizations_url":"https://api.github.com/users/Anubhav-Bhargava/orgs","repos_url":"https://api.github.com/users/Anubhav-Bhargava/repos","events_url":"https://api.github.com/users/Anubhav-Bhargava/events{/privacy}","received_events_url":"https://api.github.com/users/Anubhav-Bhargava/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T13:28:49Z","updated_at":"2018-03-29T13:28:49Z","author_association":"CONTRIBUTOR","body":"@frankrousseau The error message is \r\n\r\n``` \r\n>>> places = openfoodfacts.facets.get_purchase_places()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/dist-packages/openfoodfacts/__init__.py\", line 21, in func\r\n    return utils.fetch(facet)['tags']\r\n  File \"/usr/local/lib/python2.7/dist-packages/openfoodfacts/utils.py\", line 43, in fetch\r\n    return response.json()\r\n  File \"/usr/local/lib/python2.7/dist-packages/requests/models.py\", line 826, in json\r\n    return complexjson.loads(self.text, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/simplejson/__init__.py\", line 518, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py\", line 370, in decode\r\n    obj, end = self.raw_decode(s)\r\n  File \"/usr/local/lib/python2.7/dist-packages/simplejson/decoder.py\", line 400, in raw_decode\r\n    return self.scan_once(s, idx=_w(s, idx).end())\r\nsimplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\r\n```\r\n\r\nAlso \r\n\r\n\r\n```\r\n>>> codes = openfoodfacts.facets.get_packaging_codes()\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nAttributeError: 'module' object has no attribute 'get_packaging_codes'\r\n```"}}
{"actor":{"display_login":"Anubhav-Bhargava"}}