-
Notifications
You must be signed in to change notification settings - Fork 474
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
requests.exceptions.HTTPError when calling cv.collection.get_rows() #365
Comments
I have the same error from yesterday. Maybe the API V3 is down? |
This is a known issue, and the developer has not updated the application in a couple of years and I’m assuming it’s now dead. I don’t know of any forks from this project that have fixed the issue as folks are now using Notion’s own API. Notion has its own API (https://developers.notion.com) that’s easy to get into; only disadvantage is that files cannot be uploaded. |
It's because of a Line 339 in c9223c0
|
Thank you David, its worked perfectly! |
@wsykala Thank you for the fix, while it did solve some issues I noticed we were still having some issues with the collections having the filter property and it failing. Here were our commits to fix: |
@wsykala @srepollock could you please give a clue how to use collections without filter? |
filter field has been renamed to filters, and has a different syntax. removing the filter parameter for the request let you send requests, but disable any filter functionnality |
Do you know any patch to have filter functionality back? |
Not really. I just checked the requests sent on the website, but I don't know this API well enough to patch itOn Feb 17, 2022 12:53 PM, Safonov ***@***.***> wrote:
Do you know any patch to have filter functionality back?
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
Thanks for the reply. Looks like the only way for my is to migrate to Official Beta API. |
@todaysday looks like the new format is updated here: https://developers.notion.com/reference/post-database-query-filter // Example:
{
"filter": {
"and": [
{
"property": "Seen",
"checkbox": {
"equals": false
}
},
{
"property": "Yearly visitor count",
"number": {
"greater_than": 1000000
}
}
]
}
} I'm sure this could be coded in, but at this point it's an uneeded feature for the time being for our work. We use filters in our databases, just with the API we don't use the filters for now (we need all the data and filter once we have all that data separately). I'm sure I'll update if/when we add this feature |
I get an requests.exceptions.HTTPError after using cv.collection.get_rows()
The full error message is:
File "C:\Users\rober\Anaconda3\lib\site-packages\notion\collection.py", line 239, in get_rows
return self.query(**kwargs)
File "C:\Users\rober\Anaconda3\lib\site-packages\notion\collection.py", line 236, in query
return CollectionQuery(self, self._get_a_collection_view(), **kwargs).execute()
File "C:\Users\rober\Anaconda3\lib\site-packages\notion\collection.py", line 411, in execute
**kwargs
File "C:\Users\rober\Anaconda3\lib\site-packages\notion\client.py", line 294, in query_collection
return self._store.call_query_collection(*args, **kwargs)
File "C:\Users\rober\Anaconda3\lib\site-packages\notion\store.py", line 350, in call_query_collection
response = self._client.post("queryCollection", data).json()
File "C:\Users\rober\Anaconda3\lib\site-packages\notion\client.py", line 262, in post
"message", "There was an error (400) submitting the request."
requests.exceptions.HTTPError: Something went wrong.
The text was updated successfully, but these errors were encountered: