Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Geting HTTP 400 error on post to Notion #27

Open
Tracked by #28
kootstra opened this issue Aug 23, 2022 · 2 comments
Open
Tracked by #28

Geting HTTP 400 error on post to Notion #27

kootstra opened this issue Aug 23, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kootstra
Copy link

kootstra commented Aug 23, 2022

In Vercel I can see the following in the realt-time log. Checked to see if the Token_V2 was set according to the one in the cookie and it is identical. So I'm at a loss how to debug this any further.

[GET] /notion-schema/1e697f54ab3f492f89ebed37ee.../7a0a2021487b44c6aab7a975806...
16:00:06:44
init
using Web Server Gateway Interface (WSGI)
[ERROR]	2022-08-23T14:00:09.804Z	ec95284d-...	Got 400 error attempting to POST to queryCollection, with data: {
  "collection": {
    "id": "59d952a6-7796-...",
    "spaceId": "8921877a-..."
  },
  "collectionView": {
    "id": "7a0a2021-487b-...",
    "spaceId": "8921877a-...
  },
  "loader": {
    "filter": [],
    "reducers": {
      "collection_group_results": {
        "limit": 100000,
        "type": "results"
      }
    },
    "searchQuery": "",
    "sort": [
      {
        "property": "j?M]",
        "direction": "ascending"
      }
    ],
    "userTimeZone": "UTC",
    "type": "reducer"
  }
}
Traceback (most recent call last):
File "/var/task/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/var/task/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "./api/main.py", line 140, in get_schema
rows = cv.default_query().execute()
File "/var/task/notion/collection.py", line 410, in execute
self._client.query_collection(
File "/var/task/notion/client.py", line 294, in query_collection
return self._store.call_query_collection(*args, **kwargs)
File "/var/task/notion/store.py", line 350, in call_query_collection
response = self._client.post("queryCollection", data).json()
File "/var/task/notion/client.py", line 260, in post
raise HTTPError(
requests.exceptions.HTTPError: Something went wrong.
@mathix420
Copy link
Owner

Hello @kootstra, thanks for reporting this issue!
I will try to have a look once I got some free time, which is not really the case right now 😐

@mathix420 mathix420 added bug Something isn't working help wanted Extra attention is needed labels Aug 25, 2022
@kootstra
Copy link
Author

kootstra commented Aug 25, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants