Exit code 255 error on Netlify

Here is the issue I am having:

I have tried everything. I keep getting exit code error 255

partials/functions/get_featured_image.html at <$filename>: invalid value; expected string


Can you help me with this?

If you can share your repository, yes.

Here is my repository: GitHub - reke1608/rekeportfolio

When I do this:

git clone --recurse-submodules https://github.com/reke1608/rekeportfolio.git
cd rekeportfolio/

I get this (no errors):

                   | EN  
  Pages            | 55  
  Paginator pages  |  0  
  Non-page files   | 10  
  Static files     |  9  
  Processed images | 51  
  Aliases          |  9  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 18401 ms

I just noticed you’re using an older version of Hugo to build your site on Netlify.

I tested with v0.108.0.

Do I try this in terminal? or vscode?

You should be running the same version both locally and on Netlify.

If you are running v0.108.0 locally, then do this in your netlify.toml file:

HUGO_VERSION = "0.108.0"

This is covered in the Netlify documentation:

1 Like

The deploy failed even after changing the Hugo version on my netlify.toml file and confirming that the local version I had is indeed 0.108.0

Oh no.

You removed the GO_VERSION as well.

Don’t do that.

So I should leave both the go version line and Hugo line.

Also if yes, is there a specific order they should be? Can they be one after the other?

GO_VERSION = "1.19.4"
HUGO_VERSION = "0.108.0"

The order is irrelevant. They are just keys in a map.

You might want to look at the TOML documentation.

Omggg thank you so so much. It worked. You are a life saver.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.