question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Page icon and cover stopped showing up with pages API

See original GitHub issue

Describe the bug Today I noticed that page icon and cover properties stops showing up with Retrieve a Page API, and Create/Update API ignores these properties. Could it be a regression?

To Reproduce Just do something like

 const response = await notion.databases.query({
    database_id: "my database id"
  });
console.log(rsponse.results[0]);

And I got

{
  object: 'page',
  id: '...',
  created_time: '2021-09-19T21:42:00.000Z',
  last_edited_time: '2021-09-25T12:56:00.000Z',
  parent: {
    type: 'database_id',
    database_id: '.....'
  },
  archived: false,
  properties: {
    ...
  },
  url: 'https://www.notion.so/...
}

This is from a page that I verified to have a cover from the UI. No icon or cover properties there!

Node version: v14.17.0 Notion JS library version: 0.4.3

Expected behavior I’m expecting icon and cover to show up from the response as described in the documentation: Screen Shot 2021-10-11 at 2 15 54 PM

Additional context I’m sure it used to work two weeks ago, so I’m suspecting a regression in either API itself, or the sdk.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rhart92commented, Oct 12, 2021

Hi all 👋 Apologies for the inconvenience. We have identified the bug and resolved it. Please let us know if you continue to have any issues related to page icons, page covers or media blocks (e.g. image, video, etc). Will be closing the issue for now.

0reactions
flaviocopescommented, Dec 6, 2022

Would be cool if icon and cover were also showing for child_page blocks (subpages) we get through notion.blocks.children.list().

As a workaround now I can detect a block is child_page and then call notion.pages.retrieve({ page_id: ... }), but it’s one more API call for each subpage

Read more comments on GitHub >

github_iconTop Results From Across the Web

Page icons, cover images, new block types, and improved ...
Retrieve and update page and database icons and cover images. ... We do not yet support uploading files to Notion through the API,...
Read more >
Page icons & covers - Notion
Page icons & covers. In Notion, your docs don't need to look bland. Add an icon to any page to make it easier...
Read more >
Creating Your Product Page - App Store - Apple Developer
You can feature up to three app previews on your App Store and Mac App Store product pages, and localize them for all...
Read more >
Feed - Documentation - Meta for Developers - Facebook
Name Type Description id string The ID of the post. actions object Action links on the post, Comment, Like, Share. id int ID of the person,...
Read more >
How to show Page Loading div until the page has finished ...
Original Answer. I've needed this and after some research I came up with this (jQuery needed):. First, right after the <body> tag add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found