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

Issues using Sample Site Template #83

Open
JustSleightly opened this issue Sep 27, 2023 · 5 comments
Open

Issues using Sample Site Template #83

JustSleightly opened this issue Sep 27, 2023 · 5 comments

Comments

@JustSleightly
Copy link

Hello! This is my first time attempting to use docu-notion, and docusaurus in general, so please forgive me if I may be missing anything obvious.

What I've done

I created a repository using the docu-notion-sample-site template, skipping steps 4 and 5 for testing locally as I just wanted to see if I could get this up and running first.

I've duplicated the Notion sample site without making any personal customizations to it.

I've set my repository settings to configure the GitHub Pages Build and deployment Source to GitHub Actions.

I've tested setting the url field (line 11) in docusaurus.config.js to both my github username and the original one, as it wasn't specified in the README of the sample site template, but seemed off.

Issues

  1. The farthest I've gotten in the process is to the Deploy to gh-pages step in the action.
    This step returns Permission to repository/docu-notion-test.git denied to github-actions[bot].
    Log: https://github.com/JustSleightly/docu-notion-test/actions/runs/6322938490/job/17169500962

  2. This is only after setting the github repo visibility to public, as before that I got just as far but Write access to repository not granted instead. Is my docu-notion repository required to be public?
    Log: https://github.com/JustSleightly/docu-notion-test/actions/runs/6322758127/job/17168975276

This seems to use the GITHUB_TOKEN instead of my Fine-grained personal access token, so it doesn't seem to be an issue with my token scope.

  1. Prior to that, I was running into an error during the Pull from Notion step in the action.
    This step returned Error: Notion page not found "6c46c1230f914d3080dca0bc2847af57"
    This issue seems similar to Notion page not found #57 which was previously closed by OP, but in my case I haven't changed the sample site.
    I got past this error only by publishing my notion page publicly to the web. Is my docu-notion site required to be public?
    I don't see the same "Share" option to Invite my Notion Integration like your screenshot, and was only able to add the connection using these steps in Notion's documentation
    Log: https://github.com/JustSleightly/docu-notion-test/actions/runs/6322476314/job/17168173721

  2. Lastly, every other build run seems to sporadically encounter UnknownHTTPResponseError: Request to Notion API failed with status: 502 during the Pull from Notion step.
    From google results, this one seems like it may just be a Notion API issue that began reoccurring recently.
    Log: https://github.com/JustSleightly/docu-notion-test/actions/runs/6322846245/job/17169220332

@hatton
Copy link
Member

hatton commented Sep 27, 2023

I've updated the ReadMe to reflect the change in Notion UI for connecting integrations.

@hatton
Copy link
Member

hatton commented Sep 27, 2023

Is my docu-notion repository required to be public?

Not as far as I can tell. As a test, I unpublished one of our test sites just now and docu-notion accessed it without problems.

@hatton
Copy link
Member

hatton commented Sep 27, 2023

@JustSleightly can you try the latest (i.e. using npx)? v15 adds a check along with troubleshooting advice.

@JustSleightly
Copy link
Author

@hatton Thanks for your quick update!
I attempted a local pull using npx with v0.15.0 (as well as v0.13.2) and it seemed to pull from Notion fine.

I did notice, however, that multi-column layouts did not seem to be working like your sample site

Attempting to update the sample site repository/action (by replacing the version number in the package.json to v0.15.0) did not seem to work, despite confirming all my repository secrets are correct.
Log: https://github.com/JustSleightly/docu-notion-test/actions/runs/6332176519/job/17198155645

Perhaps the issues I've been having (other than the multi-column layout) are only specific to the sample site template?

@jellejurre
Copy link
Contributor

oh yeah this is because you need to include the CSS from the repo manually

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