# Upgrade with API problem

**URL:** <https://forums.suse.com/t/upgrade-with-api-problem/3186>\
**Category:** Rancher 1.x\
**Created:** [June 22, 2016, 12:27pm UTC](https://forums.suse.com/t/upgrade-with-api-problem/3186 "2016-06-22T12:27:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmetzler](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dmetzler/32/728_2.png) [@dmetzler](https://forums.suse.com/u/dmetzler)\
**Post date:** [June 22, 2016, 12:27pm UTC](https://forums.suse.com/t/upgrade-with-api-problem/3186/1 "2016-06-22T12:27:52Z")

</div>

Hello,

I’ve created a stack with the `rancherClient.Environment.Create` API (with the Go client)

I’m trying to upgrade that stack by adding new environment variables thru :

```
     envUpgrade := &client.EnvironmentUpgrade{
	DockerCompose: extractFileContent(template, "docker-compose.yml"),
	RancherCompose : extractFileContent(template, "rancher-compose.yml"),
	Environment : s.Config.Environment,
}

env, err = r.rancherClient.Environment.ActionUpgrade(env, envUpgrade)

```

But after that call, I get an error which is … asbtract :

`Unknown resolution for 'true' using <config.RawService Value> at line 0, column 70`

Any help on this ?

---

<div class="post-metadata">

**Author:** ![dmetzler](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dmetzler/32/728_2.png) [@dmetzler](https://forums.suse.com/u/dmetzler)\
**Post date:** [June 22, 2016, 1:27pm UTC](https://forums.suse.com/t/upgrade-with-api-problem/3186/2 "2016-06-22T13:27:55Z")

</div>

Ok, so it’s solved 🙂  
The problem was that the docker-compose file was not well sent to the API. So the error comes from the YAML parser used by `rancher-compose`
