-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Error: Index creation failed - after adding API URL & Key #168
Comments
Welcome @robbiecren07! Can you publish your API URL and keys here (you can invalidate them after a day), so I have a chance to debug the issue on my end? BTW, do you have any published content on your site? |
Sure! |
Thanks! I can reproduce the issue with your credentials. I don't know the exact reason yet, but a workaround is to deactivate the file cache in `appConfig.ts':
Can you please test if that could be a (temporary) workaround? |
The error I am getting has been reported here: vercel/next.js#33860 and needs to be fixed upstream. Another workaround is to downgrade next.js to version |
@robbiecren07: I am still puzzled how you got the "Index creation failed" error. I cannot reproduce it. |
@styxlab Sorry for the delayed reply, when I get online later tonight I will try the cache control and downgrade nextjs and see how that works. As for the index error, I may have done something while I was trying to fix it. So maybe I'll do a clean git clone again and make sure I don't audit fix anything and just enter my API key and URL and see if I still get the index error. I'll report back later tonight. |
Ok I think I figured it out, which it's a big error on my end. I tried the cache control and downgrade on nextjs and that didn't work. So I created a new clone and only did npm install and switched out the API key and URL in So I went back into my first repo, I realized I still had the So in the end, no need to downgrade nextjs, or disable the cache control. Just needed to delete the |
I am glad you got it working! Just note that for local development, you should add the keys to '.env.local' and not change any files. BTW, if you don't give custom keys, there is an automatic fallback to a test system that I am hosting. |
I hit the same issue. It turned out to be a featured image URL that 404'd, nor did I have it set up as a permitted |
Issue:
Steps I took:
I cloned the git repo, yarn install > yarn run dev - successfully opened localhost:300.
After that I signed up for a free trail of Ghost Pro, then I created a custom integration within Ghost Admin to generate a key. Then I changed the CMS_GHOST_API_URL & CMS_GHOST_API_KEY on lines 5-6 in /lib/processEnv.ts - to the new key and URL which I generated. I saved the file and did yarn run dev, once I opened localhost:300, I was given the error.
Here is the console error as well:
After the error, I also tried creating a .env.local file in the root with my CMS_GHOST_API_URL & CMS_GHOST_API_KEY.
The text was updated successfully, but these errors were encountered: