Giter VIP home page Giter VIP logo

mmm-notion's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mopele

mmm-notion's Issues

Two modules with the same database ID are duplicating results

When using the same database module config settings for two different modules with the only difference being the filter criteria, it is rendering the same content for both modules. IE, it is applying the same filter criteria (the last filter criteria) when there are multiple modules that point to the same database id.

MMM-Notion: Could not find database with ID

Hi choffmann,

can you please help?

I receive this error log when trying to get your module to do some magic for me.

[11.04.2023 07:35.42.517] [WARN]  @notionhq/client warn: request fail {
  code: 'object_not_found',
  message: 'Could not find database with ID: c7b143a7-21b3-4f55-bfcb-c74b5d243c9 1. Make sure the relevant pages and databases are shared with your integration.'
}
[11.04.2023 07:35.42.526] [ERROR] APIResponseError: Could not find database with ID: c7b143a7-21b3-4f55-bfcb-c74b5d243c91. Make sure the relevant pages and databases are shared with your integration.
    at buildRequestError (/home/fwuth/MagicMirror/modules/MMM-Notion/node_modules/@notionhq/client/build/src/errors.js:162:16)
    at Client.request (/home/fwuth/MagicMirror/modules/MMM-Notion/node_modules/@notionhq/client/build/src/Client.js:304:54)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Class.makeQuery (/home/fwuth/MagicMirror/modules/MMM-Notion/node_helper.js:43:10)
    at async Class.makeRequest (/home/fwuth/MagicMirror/modules/MMM-Notion/node_helper.js:32:18)
    at async Class.socketNotificationReceived (/home/fwuth/MagicMirror/modules/MMM-Notion/node_helper.js:20:5) {
  code: 'object_not_found',
  status: 404,
  headers: Headers {
    [Symbol(map)]: [Object: null prototype] {
      date: [Array],
      'content-type': [Array],
      'transfer-encoding': [Array],
      connection: [Array],
      'set-cookie': [Array],
      'content-security-policy': [Array],
      'x-dns-prefetch-control': [Array],
      'x-frame-options': [Array],
      'strict-transport-security': [Array],
      'x-download-options': [Array],
      'x-content-type-options': [Array],
      'x-permitted-cross-domain-policies': [Array],
      'referrer-policy': [Array],
      'x-xss-protection': [Array],
      etag: [Array],
      vary: [Array],
      'cf-cache-status': [Array],
      server: [Array],
      'cf-ray': [Array],
      'content-encoding': [Array]
    }
  },
  body: '{"object":"error","status":404,"code":"object_not_found","message":"Could not find database with ID: c7b143a7-21b3-4f55-bfcb-c74b5d243c91. Make sure the relevant pages and databases are shared with your integration."}'

According to the error the database cannot be found. I think I configured it correctly though:

grafik

There are hyphons inserted in the error-log (not in the config-file).
Might they be problematic?

Thanks in advance,
Fritz

PS:Just tried to add a notion database instead of a simple notion page. The result is pretty much the same, just with a different ID.

Refresh is creating duplicate rows

When the update interval is reached and the database refreshes, the original rows stay in the list view and they are appended again at the bottom of the list view. It is essentially causing duplicate rows after the refresh period and theoretically triplicate...etc.

TypeError: Cannot read properties of undefined (reading 'type')

I don´t know if i got the right database id, but with the id i currently have in the config file every sixty seconds when the module updates itself it shows the error "TypeError: Cannot read properties of undefined (reading 'type')". If I use another database id it shows another error which says it cannot find a database with that id.

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.