Code Monkey home page Code Monkey logo

notion-charts's People

Contributors

mathix420 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

notion-charts's Issues

Geting HTTP 400 error on post to Notion

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.

Refresh button

Can you add a refresh button? This way I don’t need to refresh the entire concept page after updating the data

Thanks in advance

Internal server error

Tried this out today using the https://notion-charts.now.sh URL and pasting in my Notion page which has a database on it, but it just returned an Internal Server Error.

My Notion table is not recognized

Hey, I've been trying to create charts for one of my personal Notion tables but the page keeps loading and doesn't show any results.

The page where I have my table is this one: https://pealecrim.notion.site/ca7692959bf045d786e92d3b6a126cea?v=5068fa00f41246688ed944ecaff1eded

It's already configured as visible to others and I even tried using a different link to it, like the one below: https://www.notion.so/pealecrim/ca7692959bf045d786e92d3b6a126cea?v=5068fa00f41246688ed944ecaff1eded

Am I doing something wrong?

Handle new Notion's databases

Discussed in #25

Originally posted by Ravie13 March 18, 2022
Hi there - this looks like just the code I need!
I followed the directions for a private notion page and ran it but I'm getting errors in the console. I'm wondering if it is because of the recent Notion Database updates?

Failed to load resource: the server responded with a status of 500 ()
(index):203 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')
    at (index):203:34

At that index in the code this is the function:


 json.columns.map(function (column) {
                        const opt = document.createElement('option');
                        opt.innerText = column.name;
                        opt.value = column.id;
                        return opt;
                    }).forEach(function (child) {
                        fields.appendChild(child);
                        firstColumnSav = firstColumn.cloneNode(true);
                        firstColumnSav.querySelector('input').value = '';
                    });
```</div>

{"error":"Invalid input."}

All the examples on the repo return this value to me when using the latest firefox, chrome or edge on windows 10.

No supported error

No matter what chart I try, I keep on seeing this error on my charts.

{"error":"'<' not supported between instances of 'NoneType' and 'str'"}

Reading Advanced Columns

Noticed that Advanced columns can't be read such as roll ups & relations. Not sure if it's possible.
I'll try to contribute if I have time.

Btw Great product! Helps me do what I wanted to do. Thank you!

build on vercel failed: pip3

Sadly the build failed on vercel for me with the following message:

Error: Command failed: pip3 install --disable-pip-version-check --target . --upgrade -r /vercel/6c259a13/requirements.txt

Have you an idea what's the problem with that?

"Default view" label

Hi, sorry if this is covered somewhere but I didn't see it:

Is there a way to change the label of "Default view" on the svg charts?

lost sys.stdin

On a fresh installation on Vercel with the correct token, I’m getting these error messages in the function log:

[GET] /notion-schema/[…]/[…]
module initialization error: input(): lost sys.stdin
module initialization error
input(): lost sys.stdin

The app returns the error code 500. This happens right after a URL is entered in the Notion URL form field, with both your examples and table URLs from the Notion account linked via the token. I’m stumped – do you have any idea what could be happening here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.