Docker Community Forums

Share and learn in the Docker community.

[BUG] Saving an invalid Stack file causes infinite loader

(Eamonwoortman) #1

Issue type: bug
OS Version/build: Windows 10 Pro
App version: Chrome Version 51.0.2704.106 m
Steps to reproduce:

  1. Create or edit a Stack
  2. Use this Stack file:
  image: 'hello-world:latest'
    awesomelabel: 'foobar'
  1. Click Create/Save

When trying to save an invalid stack file, the new UI shows a loading circle animation and never stops.
In the developer console I can see a failed Patch request(400 BAD REQUEST), followed by the following JS errors;

Unhandled rejection ActionableError
    at t (
    at new t (
    at r (
    at Array.forEach (native)
    at s (
From previous event:
    at Object.update (
    at v (
    at t.value (
    at Object.r (
    at a (
    at Object.s [as executeDispatchesInOrder] (
    at f (
    at p (
    at Array.forEach (native)
    at n (
    at Object.processEventQueue (
    at r (
    at Object.handleTopLevel [as _handleTopLevel] (
    at a (
    at i (
    at r.perform (
    at Object.batchedUpdates (
    at Object.i [as batchedUpdates] (

When trying this in the classic UI, it informs me the labels have to be formatted in a list by the means of this error notification;

Service 'hello-world': 'labels' must be a 'list' of 'strings'. See '' for more details

(Badevguru) #2

Same in Chrome OS/X Version 53.0.2785.1 canary (64-bit)

I issue is the error messages not bubbling up in the new UI.
The second issue is that the UI when loading existing stacks reformats the YAML that had labels as strings in to the alternate format that triggers the error.