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

Issue Report: Error in Fetching _config.yml with Jekyll Admin #711

Open
kamyarothmanhamad opened this issue Jul 13, 2024 · 2 comments
Open

Comments

@kamyarothmanhamad
Copy link

Description:

When serving my Jekyll site locally and accessing Jekyll Admin at http://127.0.0.1:4000/admin/, I encounter an error message stating "Error: Could not fetch the config."

Tell us a bit about yourself:

  • Version of JekyllAdmin I'm using: 0.11.1
  • Version of Jekyll I'm using: 4.3.3
  • Operating System: Windows 10
  • Browser: Chrome

Steps to reproduce:

  1. Add the jekyll-admin plugin to the _config.yml file.
  2. Serve the Jekyll site locally using bundle exec jekyll serve.
  3. Navigate to http://127.0.0.1:4000/admin/.

I expected the following:

Jekyll Admin should load properly and fetch the _config.yml file without any errors.

But got the following, instead:

An error message is displayed: "Error: Could not fetch the config."

Other details:

Below is the _config.yml file:

title: Dahatû | داهاتوو
email: [email protected]
description: "Dahatu Foundation"
baseurl: ""
url: "https://dahatu-foundation-kurd.github.io"
twitter_username: dahatu

# Build settings
remote_theme: just-the-docs/just-the-docs

# Just the Docs settings
search_enabled: true
aux_links:
  "Theme on GitHub":
    - "//github.com/just-the-docs/just-the-docs"

plugins:
  - jekyll-remote-theme
  - jekyll-feed
  - jekyll-admin

Error message in the browser's developer console:

Error: Could not fetch the config

Steps taken to troubleshoot:

  1. Validated _config.yml using an online YAML validator.
  2. Checked file permissions to ensure _config.yml is readable.

The _config.yml file is located at the root of the project, and the site is hosted on GitHub Pages, but the error occurs during local development.

@SoumyaK4
Copy link

SoumyaK4 commented Nov 13, 2024

image

Adding this to _config.yml fixed for me.

edit: and it looks like you tried to get chatgpt's help, but it doesn't work on present problems, sorry

@kamyarothmanhamad

@ashmaroli
Copy link
Member

I recommend @SoumyaK4 's workaround until a new patched version of the frontend ships.

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