GithubHelp home page GithubHelp logo

Comments (11)

dlitvakb avatar dlitvakb commented on September 3, 2024

Hey @bamboocreative,

Can you share the contentful block of your _config.yml file so we can look at what might be happening? Obfuscate your keys if content is not public

Cheers

from jekyll-contentful-data-import.

bamboocreative avatar bamboocreative commented on September 3, 2024

See below @dlitvakb. Out of curiosity, would this be caused by needing to upgrade the account?

contentful:
  spaces:
    - example:
      space: 1234_space_id
      access_token: 1234_production_content_delivery_api_key

from jekyll-contentful-data-import.

dlitvakb avatar dlitvakb commented on September 3, 2024

Hey @bamboocreative,

Found your issue, the space and access_token keys are indented a level less than they what are supposed to be. YAML is a very strict white-space based format, and can be a bit painful sometimes with deeply nested structures.

What do you mean "upgrade the account"? This should work from Free to Enterprise tiers without exception.

Hope this helps

from jekyll-contentful-data-import.

bamboocreative avatar bamboocreative commented on September 3, 2024

@dlitvakb you rock. I figured it was something silly like that. An yes, it works for the free account, saw a mention somewhere else that mentioned account issues. Works great now. Thanks

from jekyll-contentful-data-import.

dlitvakb avatar dlitvakb commented on September 3, 2024

@bamboocreative No problem! Glad to help! 👍

from jekyll-contentful-data-import.

zuzust avatar zuzust commented on September 3, 2024

@dlitvakb Same issue here, but different message:

bundle exec jekyll contentful --trace  
Configuration file: /home/carles/Projectes/jekyll/jekyll.me/_config.yml  
Starting Contentful import  
/home/carles/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/jekyll-contentful-data-import-1.2.1/lib/jekyll-contentful-data-import/mappers/base.rb:50: stack level too deep (SystemStackError)

This is my Gemfile:

source 'https://rubygems.org'

gem 'jekyll', '3.1.3'
gem 'contentful_bootstrap'

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

And this my config settings:

contentful:
  spaces:
    - example:
        space: SPACE_ID
        access_token: TOKEN
        cda_query:
          include: 2

from jekyll-contentful-data-import.

dlitvakb avatar dlitvakb commented on September 3, 2024

Hey @zuzust,

Can you provide me your Content Types JSON Preview? Do you happen to have any circular reference?

Cheers

from jekyll-contentful-data-import.

zuzust avatar zuzust commented on September 3, 2024

@dlitvakb sure, here you are...

Author.txt
Category.txt
Cat_videos.txt
Post.txt

from jekyll-contentful-data-import.

dlitvakb avatar dlitvakb commented on September 3, 2024

Hey @zuzust,

In fact, you have a circular reference between Author and Post, therefore creating this infinite loop which causes your error, please consider removing the link from author to posts (in your author content type), as your post will already include author data, and if you need the back reference you can fetch it with a quick search over your already serialised data.

Hope that helps

from jekyll-contentful-data-import.

zuzust avatar zuzust commented on September 3, 2024

@dlitvakb, you are right. Disabling that reference from response it works fine. Thanks!

from jekyll-contentful-data-import.

dlitvakb avatar dlitvakb commented on September 3, 2024

Glad it worked!

Closing the issue

from jekyll-contentful-data-import.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.