-
Notifications
You must be signed in to change notification settings - Fork 222
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
All fruition website down #107
Comments
same issue as above |
If it is correct and I do not see any post or something referring to the creator: C I do not want to know what the end is xd here I see a post on reddit |
Same problem here, any information about how and when this can be fixed would be super appreciated! |
I have the same problem. Unfortunately things have been looing troubling for fruitionsite since Notion decided to add their own "custom" URLs. I hope there is a solution!!!! |
Thanks to Ryo from Notion, my site is working now: This is how to fix it my old code on Cloudflare:
my new code:
the line I added that fixed the issue
|
Your (and Ryo's) fix worked for me, @wentin! I changed the configuration slightly to pull from |
works fine for all old sites created in Notion ! 👍🏻 |
@jruers what is the new site URL that you're trying? When testing my PR code I used a brand new share URL and the latest |
And what's the Notion URL that you're using @jruers ? |
yes i see
|
@laughnan https://enfim.notion.site/eb6e671f1df340a0a3bd1362df05033b @Creadors thx. I have tried that already, but we'll give it another try |
Okay, the problem is already with the domain or place where you have it hosted. It still checks in workers that it is redirecting to the domain that you have 'enfim.eu'; / from worker without the www. for something like that enfim.eu/* or * .enfim.eu |
@Creadors checked all configurations at the provider. but are all the same like e.g. enfim.nl |
thank you for sharing! this fixed my problem. |
how to found this code? what file should i open? |
https://github.com/stephenou/fruitionsite/blob/master/worker.js |
Tried the recommended solutions I am still getting the same error. Route is Worker code`/* CONFIGURATION STARTS HERE *//* Step 1: enter your domain name like fruitionsite.com */ /*
/* Step 3: enter your page title and description for SEO purposes */ /* Step 4: enter a Google Font name, you can choose from https://fonts.google.com */ /* Step 5: enter any custom scripts you'd like */ `; /* CONFIGURATION ENDS HERE */ const PAGE_TO_SLUG = {}; addEventListener('fetch', event => { function generateSitemap() { const corsHeaders = { function handleOptions(request) { async function fetchAndApply(request) {
} class MetaRewriter { class HeadRewriter { class BodyRewriter { async function appendJavascript(res, SLUG_TO_PAGE) { |
@ozanozyegen you want it to be your custom domain, see this as a sample: #109 |
Greetings, if I see that you still get the error. try the direct corrections of the base code and then customize it so that you do not have any errors. Code Active: https://fruition-git-master-stephenou.vercel.app/ generate new code |
Thank you, problem solved. |
Fix escape that prevent the domain to be set
Hi, there!! Thank you all for this quick response once the change on Notion was implemented. EXTREMELY helpful for a non-coder as me :). "Continue to external site by following the link below" https://pasteboard.co/KfRjfeV.jpg Edit: created issue #116 for this. |
I still get an error. The steps I followed are below
When I hit my website , I see blank page with following error on Developer Console. Have I missed something? Thanks
|
Yeah see #113 , that's a bit different than this one. |
Hi! I still find the "Mismatch between origin and baseUrl (dev)." message. I've tried all the solutions here including the new code but they're not working, it's so frustrating :( Any thoughts? |
Hi there, Fixed & working well for me.
By the way my JS is a bit rusty. What is exactly the difference between @stephenou maybe could you update this PR 8b1f7dc Thanks, |
Sorry, I don't get it. Are you refering to the code at step 2? (the one with the "copy the code" button) Otherwise I don't understand what do you mean by step 3. Besides, I can't tell the difference between the new line you have written and the one given at Fruitonsite. |
According to the comments to this post [https://michaeljfordham.medium.com/how-and-why-im-using-notion-as-my-portfolio-c4eb927b613c], "It appears an update Notion rolled out last week has broken a lot of Fruition sites". Anyone else with the same problems? I have recently renewed my domain and other stuff and I'm afraid it's wasted money :( :( :( |
I understand, currently my sites are operational. |
But did you have the same problem? |
Yes the Step 2 in Fruition when copying the code in the Worker into Cloudfare |
Hi,
my website is onurolgun.com and notion link: https://forest-blob-004.notion.site/Merhaba-dd04482390504dfdbe8367ccb08a696f Can anyone share any idea, please? This code (new) does not work: addEventListener('fetch', event => { function generateSitemap() { const corsHeaders = { function handleOptions(request) { async function fetchAndApply(request) {
} class MetaRewriter { class HeadRewriter { class BodyRewriter { async function appendJavascript(res, SLUG_TO_PAGE) { |
I understand your situation, I just tested this code with my workers and they work, you just have to edit the code. imagen: https://ibb.co/khxwqVv CODE FIX: https://gist.github.com/isjair/7f3f243d229de2873eb612129216288e |
Thanks for your help. However, even though I copied the exact same code but only changed the domain and slug, and it still does not work. Can you tell me that is there something I should do else, or change something from my domain provider, godaddY? |
If you verify your domain provider and that everything is fine since the error that I get is that you cannot access the same domain you have, now if you have it from cloudflare verify the dns and you have deleted the cache in development mode and Go into private mode in the browser and check if you have access, if you do not have access there is an error from the provider in some configuration. Because if the domain will work, it will send you the page with a very common baseurl error, but since it is not, then it is assumed that it is from a provider to cloudflare or the other way around. |
As far as I tried, I still get the same baseUrl error. It is frustrating actually. |
Nope, new Cloudflare account also didn't work. I'm out of ideas it still does not work. I know that worker starts. Because when I try to enter the site, it goes 404 but adds the Slug at the end of the URL. However, it does not work completely. I cannot understand it and I'm out of ideas. Please, I need further assistance 🙏 @isjair |
I understand your situation and at the same time it is very strange, have you tried to generate new code? from this post? https://www.reddit.com/r/Notion/comments/p495vu/fruitionsite_correction_active/?utm_medium=android_app&utm_source=share or https://fruition-git-fork-laughnan-override-domainbaseurl-stephenou.vercel.app/ copied as is in worker once I make it clear cache, development mode and wait and open in incognito mode, since it worked for me as I attached it previously is strange |
Hi again, |
There seems to be reference to two different errors in this post. The "redirect" error that happened about a month ago and the more recent "Mismatch" error. The "redirect" error was due to Notions update allowing users to set a public user name under account settings and if this was not completed by a certain date Notion would assign a temporary user name. If this has happened to you then you would have noticed a strange url on your public site. To correct this you must first choose a public url for your workspace under your Notion settings. Then this must be updated in the cloudflare worker script ONLY if the change altered the plug. If it did not then the redirect should processed through cloudflare. The "Mismatch" error can be corrected (as stated in a previous comment) by adding I have seen several posts on Reddit that this is to be added to line 4, however it depends on the script your are using. If you are using the original (or close to original) Fruition script, then the line will be added closer to the bottom (under "element. append"). Be sure to replace the "yourdomainname" with your custom domain. Save, deploy and exit worker. I hope this helps |
Click Worker - Manage Workers - Choose the workers that you made before - Quick Edit |
Nothing, this code neither works for me. Guess I'll have to check something different from Fruition. |
Thanks. Using a different brower than the one I used before I changed config, incognito mode or safari instead of chrome, worked for me. |
I have my website hosted with the fruition script and it just went down showing "Mismatch between origin and baseURL (Dev)." Even the fruition website and most of the showcase websites are down. Please fix. Thanks
The text was updated successfully, but these errors were encountered: