strapi-community / jekyll-strapi

Jekyll plugin to retrieve content from any Strapi API.
https://strapi.io
MIT License
57 stars 29 forks source link

Jekyll and Strapi: The Strapi server sent a error with the following status: 404. Please make sure it is correctly running #6

Closed stephan9696 closed 2 years ago

stephan9696 commented 5 years ago

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:

jekyll 3.8.5 | Error: The Strapi server sent a error with the following status: 404. Please make sure it is correctly running.

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.

lauriejim commented 5 years ago

Hello! I think you have to add data before.

ilearnbydoing commented 5 years ago

I fixed 404 error now I am getting this error jekyll 3.8.6 | Error: Can't convert Fixnum into String.

any help. thanks

michal-keidar commented 5 years ago

How did you fix the 404 error?

jeremylynch commented 4 years ago

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
bluszcz commented 2 years ago

New release for Strapi 4 have better error handling implementation.