Skip to content
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

Build error. #67

Closed
anudeepreddy opened this issue Mar 7, 2021 · 3 comments
Closed

Build error. #67

anudeepreddy opened this issue Mar 7, 2021 · 3 comments

Comments

@anudeepreddy
Copy link

Hey,

I was trying to build my blog this morning and it ends up with a build error. The dev command throws a 400 bad request error. This is the entire error messages that i can see in my console. I will be happy to provide you with more information if required.

{
  domain: 'notion-blog-eta-nine.vercel.app',
  name: 'Anudeep Reddy',
  rootNotionPageId: 'dd2a0cbdee2c46fb88de8d65fc47c308',
  rootNotionSpaceId: null,
  description: 'Example site description'
}
page error notion-blog-eta-nine.vercel.app HTTPError: Response code 400 (Bad Request)
    at Request.<anonymous> (/workspace/nextjs-notion-starter-kit/node_modules/got/dist/source/as-promise/index.js:117:42)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  code: undefined,
  timings: {
    start: 1615095042241,
    socket: 1615095042242,
    lookup: 1615095042290,
    connect: 1615095042329,
    secureConnect: 1615095042340,
    upload: 1615095042340,
    response: 1615095042369,
    end: 1615095042371,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 1,
      dns: 48,
      tcp: 39,
      tls: 11,
      request: 0,
      firstByte: 29,
      download: 2,
      total: 130
    }
  }
}
HTTPError: Response code 400 (Bad Request)
    at Request.<anonymous> (/workspace/nextjs-notion-starter-kit/node_modules/got/dist/source/as-promise/index.js:117:42)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  code: undefined,
  timings: {
    start: 1615095042241,
    socket: 1615095042242,
    lookup: 1615095042290,
    connect: 1615095042329,
    secureConnect: 1615095042340,
    upload: 1615095042340,
    response: 1615095042369,
    end: 1615095042371,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 1,
      dns: 48,
      tcp: 39,
      tls: 11,
      request: 0,
      firstByte: 29,
      download: 2,
      total: 130
    }
  }
}
@emindeniz99
Copy link

Did you upgrade your npm packages up to master repo’s versions?
After that, dont forget ‘yarn install’.
I encountered with same issue yesterday.

Notion has changed something at API, Travis fixed it at his repo’s

@anudeepreddy
Copy link
Author

Thanks man. It works likes charm now✨

@transitive-bullshit
Copy link
Owner

Thanks @emindeniz99 🙏 Yep, notion made a breaking change to their API recently which was fixed in react-notion-x this past week.

Cheers 😄

AbdallahEssamGaber pushed a commit to iSchoolTech/TGs-backup that referenced this issue Apr 17, 2024
* feat: add prettier config file

* refactor: Move config files to site.config

* feat: Updated the Pull request template

* feat: Add Bug report Form

* feat: Updated the bug_report template

* feat: Updated code of conduct

* feat: Updated Contributing Docs

* feat: update Pull Request template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants