Code Monkey home page Code Monkey logo

astro-notion's People

Contributors

jcha0713 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

Watchers

 avatar

astro-notion's Issues

Incorrect database link on vercel app

On the vercel app on the basic setup, point 4

Go to https://heliotrope-lavender-f03.notion.site/Example-Database-a845c6d59ead4034be1b637c6381073d 
and click duplicate on the upper right corner to use it as a template.

does not lead to the database and instead rerenders the vercel app page.

Could not find database with ID

I cannot get the @notionhq/client that you use to grab the data to work.

I've followed the instructions and have added the database ID, setup the connection and added some posts to the page.

database: https://www.notion.so/jsjoeio/Blog-6c79d10bf60241df8cfaf23742d30a2a?pvs=4

error:

@notionhq/client warn: request fail {
  code: 'object_not_found',
  message: 'Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration.'
}
@notionhq/client debug: failed response body {
  body: '{"object":"error","status":404,"code":"object_not_found","message":"Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration."}'
}
APIResponseError: Could not find database with ID: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration.
    at buildRequestError (/home/coder/speak-argentinian-spanish/node_modules/@notionhq/client/build/src/errors.js:162:16)
    at Client.request (/home/coder/speak-argentinian-spanish/node_modules/@notionhq/client/build/src/Client.js:304:54)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Module.getTableData (/node_modules/@jcha0713/astro-notion/api/getTableData.ts:36:22)
    at async eval (/home/coder/speak-argentinian-spanish/src/pages/blog.astro:14:16)
    at async renderPage (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/runtime/server/render/page.js:91:30)
    at async renderPage (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/core/render/core.js:81:20)
    at async renderPage (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/core/render/dev/index.js:108:10)
    at async handleRoute (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/route.js:152:20)
    at async run (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/request.js:46:14)
    at async runWithErrorHandling (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/controller.js:65:5)
    at async handleRequest (file:///home/coder/speak-argentinian-spanish/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:3) {
  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: 6c79d10b-f602-41df-8cfa-f23742d30a2a. Make sure the relevant pages and databases are shared with your integration."}'
}

any tips for troubleshooting this?

Could you provide boilerplate code for importing posts

I am not familiar with Astro so I am unsure how to proceed with the boilerplate code to import the blog posts from my Notion Table into the index.astro file located in src. The Notion docs has the code for .js not .astro so that will not work for this use case unfortunately.

Thanks for putting this site together, it has a lot of promise!

Here is my repo of what I have so far...

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.