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

Receiving Invalid SSL Certificate Error #24

Closed
DudeThatsErin opened this issue Apr 5, 2024 · 5 comments
Closed

Receiving Invalid SSL Certificate Error #24

DudeThatsErin opened this issue Apr 5, 2024 · 5 comments

Comments

@DudeThatsErin
Copy link
Contributor

DudeThatsErin commented Apr 5, 2024

I'm attempting to set this up on https://appseeker.org

This is my site-config.ts

import { NoteHostSiteConfig, googleTag } from 'notehost'
import { PAGE_SCRIPT_JS_STRING } from './_page-script-js-string'

// Set this to your Google Tag ID from Google Analytics
const GOOGLE_TAG_ID = 'G-TSTxxx'

export const SITE_CONFIG: NoteHostSiteConfig = {
  domain: 'appseeker.org',

  // Metatags, optional
  // For main page link preview
  siteName: 'App Seeker',
  siteDescription: 'A place to seek out the perfect app for you.',
  siteImage: 'https://imgur.com/9d1XBIl.png',

  // URL to custom favicon.ico
  siteIcon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAACa5JREFUWEellwtUVHUex7/3MXcYZhheYyICkogIKDDIDA9BUctTVpt7ym3r7KNs9+xm267VOZ06vawttnKjjrWeYwSGaYpooZVvRRMFSQphyTBJEFMgBpj34z7+e/53BpFkrXbvnHnce+7///v8vr/f/f1+w+D/PJYvXy7U1tYG/tdtmIkWfnzTTUlEdK9xuV0CwzKMLAOiyEg7ey9U1g0P76Fr7rzrrvwLFy68oLhdyRoeZafazrwPgPxckAkBqooX5idFiU3E54WkAKIE9Nn92NY/tOFg36UVBaWlzzsG+p95OErHZxh0+MeAA2cDcj08nqXd3d2+nwMxIcDjixdbinl3s+xxI6Aw8PgVfD/ixWHCVn8fP+m4cLnvrecTTNpcQxhERYEDQPmAHfVO35pwXnilo6Nj6KdCTAhwf1GRZWFYoFnyuOAMED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qtyLfOhkLdDhWJYBMaX4bpBbvdK279fPcSxDnOrr5316Vx7Xj16tWs0dr2qIfx3Mz5o0YeSP/dMh0PbWN9I+oqtoCTaQiCJcPrkyCECZhekI0MSx6slkyIkhzyfsz41c2LYxmMOFyksq3aY5oWJhMI6565Y+dTVyrhCzuW3AOe3+qxS/DYGDx1y8MwhvE4fqgR29Z/AE6SoSYB6ACiQKsVkGzNxmxLHiyWDIgSHctCo9loL1AbVbAvcAyLEacb61s2whivUa9//537wYrHG6pUtx5aW1wfbtCWulweBGwCXrrnMUSHC2g60oSNb28C8YtqCOh2MgUQBGQUz0V2gQXZOTMREOWxYeSqDjjaqlmGwbDdjbXHqqGE++Gw+cBy3NkMriVdBbjz0ex6UZRLPR43TBE3YO0fn8TFi4M409mLgX4bCK0qQfuqIRqO8IhwmCZFo8SaCo7n1PIbbNljrVPNDQJwHAPbsBN/WvMa/IIHHOERFRO1dn/Vl39TAZY/kp/Rc/Fy2dCQIylpyhQ895tVGee6BrTegAheowmKemUoCLZc2u3olHTjVKMnNdnkoE1ybDhRh8TQHEHnQw5DIy7loZffHHbzg1J0jOm8gTGuaPi0fXjC/wWnj23Mr65pSFIUkfJTc+OGBnpGrxLCMhcvdrWzzoGLfmP0uL20juFx/5TtAk/2R7b5UEtHlbHx4j8GEBxuUo8q2gAAAABJRU5ErkJggg==',

  // Additional safety: avoid serving extraneous Notion content from your website
  // Use the value from your Notion settings => Workspace => Settings => Domain
  notionDomain: 'dudethatserin.notion.site',

  // Map slugs (short page names) to Notion page IDs
  // Empty slug is your main page
  slugToPage: {
    '': '11f1e3d1d62a4b40ae2c0925c0bf5670',
    contact: '9eae95d588544233b8815f8ad2cedb7b',
    about: '724c0d4c08404867a9df09f94bf09fd1',
    browsers: '2d0c6a21dd3b41cc98444e53da9be631',
    'browsers/arc': '9ccf1de38481400e9aeab18fc33d3ebc',
    taskapps: '768496d02e3048a3ab781c9a80a9d600',
    noteapps: '04998cd4c211425e8e945ca457ad1444',
    pwmanagers: '39a7e1354582476ca1278fe0a9c05578'
    // vpn: '' coming soon
    // readlater: '' coming soon
    // calendars: '' coming soon
  },

  // Subdomain redirects are optional
  // But it is recommended to have one for www
  subDomains: {
    www: {
      redirect: 'https://appseeker.org',
    },
  },

  // The 404 (not found) page is optional
  // If you don't have one, the default 404 page will be used
  // fof: {
  //   page: "NOTION_PAGE_ID",
  //   slug: "404", // default
  // },

  // Google Font name, you can choose from https://fonts.google.com
  googleFont: 'Roboto',

  // Custom JS for head and body of a Notion page
  customHeadJS: googleTag(GOOGLE_TAG_ID),
  customBodyJS: PAGE_SCRIPT_JS_STRING,
}

I don't understand why I am getting this. Here are some screenshots from CloudFlare for those settings:
Screenshot 2024-04-05 at 2 33 27 PM
Screenshot 2024-04-05 at 2 34 07 PM

I followed the steps I am about to push in a PR as well as published here: https://dudethatserin.notion.site/NoteHost-982d31fcc8dd4799a18efcb074b0e63c?pvs=4

The URL for the page via my notion domain is https://dudethatserin.notion.site/App-Seeker-11f1e3d1d62a4b40ae2c0925c0bf5670?pvs=4

Super odd as I believe that I followed the steps correctly. I am running the deploy command before checking the site and I am checking in an incognito window to make sure it isn't my cookies. I use Google Chrome.

This is a screenshot:
Screenshot 2024-04-05 at 2 52 09 PM

After doing further troubleshooting, I used Stephen's old generator to generate the array for the NOTION_PAGE_ID section and this is what I got:

  const SLUG_TO_PAGE = {
    '': '11f1e3d1d62a4b40ae2c0925c0bf5670',
    'about': '724c0d4c08404867a9df09f94bf09fd1',
    'contact': '9eae95d588544233b8815f8ad2cedb7b',
    'browsers': '2d0c6a21dd3b41cc98444e53da9be631',
    'browsers/arc': '2d0c6a21dd3b41cc98444e53da9be631',
    'taskmanagers': '768496d02e3048a3ab781c9a80a9d600',
    'noteapps': '04998cd4c211425e8e945ca457ad1444',
    'pwmanagers': '39a7e1354582476ca1278fe0a9c05578',
  };

So, I copied and pasted everything from inside the array, ran the deploy, checked, purged CF cache (after closing the incognito browser), checked again in an incognito browser, and then also checked in Safari (which I never use) and I'm still getting the same error.

I should also add that I tried turning SSL off, trying flexible and strict. None of those options help.

I also tried commenting out the siteIcon (then running deploy) as well as clearing my cookies in Chrome. None of them help. I am out of ideas. It doesn't even go to my custom 404 page that I implemented so something is going on that I have no idea about.
https://dudethatserin.notion.site/404-34333ac547e24d6f919951d1543beb93?pvs=4

Screenshot 2024-04-05 at 2 59 16 PM

LASTEST UPDATE 3:15pm CST on April 5: App Seeker is working but only because I'm using my old code. NoteHost is not working for me. I am using the same worker so I am able/willing to test code when/if it gets updated. Until then I'm using what I know works.

@heyitsmedev
Copy link

did you managed to fix this or are you using the old fruition site code?

@DudeThatsErin
Copy link
Contributor Author

LASTEST UPDATE 3:15pm CST on April 5: App Seeker is working but only because I'm using my old code. NoteHost is not working for me. I am using the same worker so I am able/willing to test code when/if it gets updated. Until then I'm using what I know works.

@heyitsmedev I know it is at the very end of a long post but it is right above the comment box.... Either way this is your answer.

@heyitsmedev
Copy link

LASTEST UPDATE 3:15pm CST on April 5: App Seeker is working but only because I'm using my old code. NoteHost is not working for me. I am using the same worker so I am able/willing to test code when/if it gets updated. Until then I'm using what I know works.

@heyitsmedev I know it is at the very end of a long post but it is right above the comment box.... Either way this is your answer.

yeah i saw your last post. hence was wondering.

But anyways, thanks for the reply.

@velsa
Copy link
Owner

velsa commented Apr 9, 2024

@DudeThatsErin the config looks ok, except for the part of notionDomain

It should be just dudethatserin, without the .notion.site part – the same way it appears in Notion settings.

Hopefully, this change should fix the SSL error.

@DudeThatsErin
Copy link
Contributor Author

@DudeThatsErin the config looks ok, except for the part of notionDomain

It should be just dudethatserin, without the .notion.site part – the same way it appears in Notion settings.

Hopefully, this change should fix the SSL error.

That did solve it. Thank you! :) I updated the Notion site to note this so hopefully no one else has any issues.

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