-
Notifications
You must be signed in to change notification settings - Fork 63
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
Collections key not found with library #105
Comments
As you can see by the URLs, the functions work a bit differently, i.e. using different API endpoints. In the first case, when using However, I don't see there are any restrictions on collection item key format as of now, so the input is actually correct, and I'd say it's the endpoint who doesn't handle it properly. Another option is to enforce some rules on collection item keys, but that might affect existing collections, so it should be done very carefully. I'll create an internal ticket to discuss and handle that in the future, thanks for the report! |
Good deal, thanks for the explanation |
I think we could add some docs here, or here https://doc.scrapinghub.com/api/collections.html#access-a-record about this subject. Last week it took me a few minutes to discover that everything was ok, but the endpoint did not allow for a |
Given @stav PR above, I think we could work on a fix for |
I'm curious about the difference between
Collection.get()
andCollection.iter(key=[KEY])
I assume that
Collection.get()
is a handy shortcut for the key-filtered.iter()
function so I guess the point of my issue is that.get()
will raise an exception if given bad input, for example slashesThe text was updated successfully, but these errors were encountered: