Closed stephan9696 closed 2 years ago
Hello! I think you have to add data before.
I fixed 404 error now I am getting this error jekyll 3.8.6 | Error: Can't convert Fixnum into String.
any help. thanks
How did you fix the 404 error?
To fix the 404 your collection type must be pluralised in config.yml, eg. articles
rather than article
strapi:
# Your API endpoint (optional, default to http://localhost:1337)
endpoint: http://localhost:1337
# Collections, key is used to access in the strapi.collections
# template variable
collections:
# Example for a "articles" collection
articles:
type: articles
New release for Strapi 4 have better error handling implementation.
I am currently trying to follow this tutorial (https://blog.strapi.io/building-a-static-website-using-jekyll-and-strapi/) and everything was working fine until the "Posts List" step. Once I added the _layouts/home.html file, changed _config.yml and restarted the jekyll server (bundle exec jekyll serve), I ended up with an error message:
Thing is, the strapi server IS RUNNING... I have access to the the strapi admin backend and I can access and view the Posts json object by visiting: http://localhost:1337/posts.