{"action":"opened","issue":{"url":"https://api.github.com/repos/scrapinghub/python-scrapinghub/issues/105","repository_url":"https://api.github.com/repos/scrapinghub/python-scrapinghub","labels_url":"https://api.github.com/repos/scrapinghub/python-scrapinghub/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/scrapinghub/python-scrapinghub/issues/105/comments","events_url":"https://api.github.com/repos/scrapinghub/python-scrapinghub/issues/105/events","html_url":"https://github.com/scrapinghub/python-scrapinghub/issues/105","id":393236260,"node_id":"MDU6SXNzdWUzOTMyMzYyNjA=","number":105,"title":"Collections key not found with library","user":{"login":"stav","id":204645,"node_id":"MDQ6VXNlcjIwNDY0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/204645?v=4","gravatar_id":"","url":"https://api.github.com/users/stav","html_url":"https://github.com/stav","followers_url":"https://api.github.com/users/stav/followers","following_url":"https://api.github.com/users/stav/following{/other_user}","gists_url":"https://api.github.com/users/stav/gists{/gist_id}","starred_url":"https://api.github.com/users/stav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stav/subscriptions","organizations_url":"https://api.github.com/users/stav/orgs","repos_url":"https://api.github.com/users/stav/repos","events_url":"https://api.github.com/users/stav/events{/privacy}","received_events_url":"https://api.github.com/users/stav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-20T22:33:55Z","updated_at":"2018-12-20T22:33:55Z","closed_at":null,"author_association":"MEMBER","body":"I'm curious about the difference between `Collection.get()` and `Collection.iter(key=[KEY])`\r\n\r\n\tstore = project.collections.get_store('trump')\r\n\r\n\tkey = '456/789'\r\n\tstore.set({'_key': key, 'value': 'abc'})\r\n\tprint(store.count())\r\n\tprint('store list:', store.list(key=[key]))\r\n\tprint('store get:', end='')\r\n\ttry:\r\n\t    print(store.get(key))\r\n\texcept scrapinghub.client.exceptions.NotFound as e:\r\n\t    print(getattr(e, 'http_error', e))\r\n\r\n\t>>> store list: [{'value': 'abc', '_key': '456/789'}]  # https://storage.scrapinghub.com/collections/9328/s/trump?key=456%2F789&meta=_key\r\n\t>>> store get: 404 Client Error: Not Found for url: https://storage.scrapinghub.com/collections/9328/s/trump/456/789\r\n"}}
{"actor":{"display_login":"stav"}}