Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Unexpected end of JSON input #878

@cameronmaske

Description

@cameronmaske

Hi,
I've been experimenting using the fleet http API. The current configuration is running on EC2 with the alpha AMI (fleet version 0.7.1).

I can't seem to create a unit. Here is my request...

curl -X PUT -H "Content-Type: application/json" -d '{"desiredState": "launched", "options": [{"section": "Service", "name": "ExecStart", "value": "/usr/bin/sleep 3000"}], "machineId": "a4dccd55d1f34cfb858a9378858bae33"}' http://localhost:6001/v1-alpha/units/foo

This results in the following error log in journal

Sep 05 00:53:12 bla.ec2.internal fleet[596]: E0905 00:53:12.107506 00596 event.go:97] etcd watcher {Watch /_coreos.com/fleet/job} returned error: unexpected end of JSON input

I have verified the API is running (I can do a GET on /machines)

Any advice on what could be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions