yaml: unmarshal errors: App Platform - Larval

I am trying to deploy Laravel app in DG App Platform

I get this build error, i think it is caused by a 3’d party plugin

----> checking for additional extentions to install <----
yaml: unmarshal errors:
line 1: cannot unmarshal !!str 'web th....' into map[string]string

ERROR failed to build : exit status 3

There is not much information on this issue when searching google does anyone know how to add something to my build cmd line to mitigate this issue please?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

As it is my app is a Larval and was using Scribe to document APi so there were many unformatted .yaml files in the build

A tip for anyone who has this issue in Windows use the explorer to do a ext:yaml to find all .yaml files in your app

Site Moderator
Site Moderator badge
June 14, 2023

Hey @phillmantaray,

such issues come when your Yaml file is not properly formated or there is a whitespace somewhere where it shouldn’t.

If you do need help with figuring that out, can you post your yaml file here?

Bobby Iliev
Site Moderator
Site Moderator badge
June 13, 2023

Hi there,

The error you’re encountering seems to be related to the format of your App Platform deployment YAML file. Is it possible for you to share the file here so I could take a quick look?

Also, here is an example deploy template YAML file for a Laravel app that you could use:

One thing to keep in mind is that YAML is very sensitive to spaces and indentation. In YAML files, indentation is used to denote the structure, which means that each level of indentation indicates a new ‘level’ in the structure.



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel