Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Error Pulling In Data #12

Closed
mattonomics opened this issue Jun 4, 2016 · 3 comments
Closed

Error Pulling In Data #12

mattonomics opened this issue Jun 4, 2016 · 3 comments
Assignees
Labels

Comments

@mattonomics
Copy link

I'm new to Jekyll and Contentful, so hang with me as I figure this out :)

I'm running a new install of Jekyll 3.1.6 locally and when running jekyll contentful I'm getting the following error:
/Library/Ruby/Gems/2.0.0/gems/jekyll-contentful-data-import-1.2.1/lib/jekyll-contentful-data-import/mappers/base.rb:82: stack level too deep (SystemStackError)

I'd really appreciate any help/advice on getting this error resolved. Thank you!

@dlitvakb dlitvakb self-assigned this Jun 4, 2016
@dlitvakb
Copy link
Contributor

dlitvakb commented Jun 4, 2016

Hey @mattonomics,

This happens when you have circular references in your Content Types.

Try to remove the fields that are causing the circular reference and that should solve the issue.

Hope that helps

@mattonomics
Copy link
Author

@dlitvakb Upfront apology again for my ignorance, but I'm not sure what you mean. It's not 100% clear to me what I can show you that would be helpful, but here's what I added to the _config.yml file:

# Contentful Settings

contentful:
  spaces:
    - post:
        space: 111 # the real space id is here
        access_token: 111 # the real token is here

The entire contents of my Gemfile is

source 'https://rubygems.org'

group :jekyll_plugins do
  gem "jekyll-contentful-data-import"
end

In my Contentful instance I'm using the pre-populated example content (Author, Cat videos, Category, Post).

I hope that this is helpful for you to guide me on fixing. I'm extremely grateful that you've made yourself available to assist!!

@dlitvakb
Copy link
Contributor

dlitvakb commented Jun 6, 2016

Hey @mattonomics,

If you go to the Contentful Web App, enter your space, and go to Content Types -> Author, there is a reference field called Created entries, disable that field.

After that, everything should work again.

This issue is being caused by having a circular reference in your Content Model

Hope this helps

Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants