{"action":"created","issue":{"url":"https://api.github.com/repos/spinnaker/spin/issues/64","repository_url":"https://api.github.com/repos/spinnaker/spin","labels_url":"https://api.github.com/repos/spinnaker/spin/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/spinnaker/spin/issues/64/comments","events_url":"https://api.github.com/repos/spinnaker/spin/issues/64/events","html_url":"https://github.com/spinnaker/spin/issues/64","id":359523279,"node_id":"MDU6SXNzdWUzNTk1MjMyNzk=","number":64,"title":"500 when Saving Pipelines","user":{"login":"briananderson1222","id":4603907,"node_id":"MDQ6VXNlcjQ2MDM5MDc=","avatar_url":"https://avatars2.githubusercontent.com/u/4603907?v=4","gravatar_id":"","url":"https://api.github.com/users/briananderson1222","html_url":"https://github.com/briananderson1222","followers_url":"https://api.github.com/users/briananderson1222/followers","following_url":"https://api.github.com/users/briananderson1222/following{/other_user}","gists_url":"https://api.github.com/users/briananderson1222/gists{/gist_id}","starred_url":"https://api.github.com/users/briananderson1222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briananderson1222/subscriptions","organizations_url":"https://api.github.com/users/briananderson1222/orgs","repos_url":"https://api.github.com/users/briananderson1222/repos","events_url":"https://api.github.com/users/briananderson1222/events{/privacy}","received_events_url":"https://api.github.com/users/briananderson1222/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-09-12T15:02:08Z","updated_at":"2018-09-13T20:29:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am trying to stay up to date with this project and eventually want to leverage the sponnets library with jsonnet but for now I am generating pipeline files then running a script that loops through the generated pipelines and posts them using the API.\r\n\r\nCurrently the command I use to do this is:\r\n```\r\ncat ${pipeline} | curl ${SPINNAKER_GATE_HOST}/pipelines -X POST -H \"Content-Type: application/json\" -H \"Accept: */*\" -H \"Cookie: SESSION=${SPINNAKER_API_SESSION}\" -d@-\r\n```\r\n\r\nWe're considering moving to this CLI in the future because even though I can get past the oauth2 authentication, I haven't built out any sort of robust library for maintaining the refresh tokens and re-authenticating and so right now we rely on getting a gate token from `gcloud auth print-access-token` which doesn't work great for CI purposes.\r\n\r\nI tried replacing the line above with something like this:\r\n```\r\n${SPIN_CMD} pipeline save --gate-endpoint ${SPINNAKER_GATE_HOST} --file ${pipeline}\r\n```\r\n\r\nThinking that they would be pretty much equivalent but am getting a 500 that I'm not 100% how to interpret (i'm very new to Go so I haven't been able to dig around too much):\r\n\r\n```\r\nStatus: 500 , Body: {\"error\":\"Internal Server Error\",\"exception\":\"org.springframework.http.converter.HttpMessageNotReadableException\",\"message\":\"Required request body is missing: public void com.netflix.spinnaker.gate.controllers.PipelineController.savePipeline(java.util.Map)\",\"status\":500,\"timestamp\":1536763816230}\r\n```\r\n\r\nIs there something obvious I'm doing wrong?\r\n\r\nI tried re-running the installation via the instructions on spinnaker.io .. after doing this \r\n`spin --version` \r\nreturns\r\n`-dev` .. not `1.10` as I would expect"},"comment":{"url":"https://api.github.com/repos/spinnaker/spin/issues/comments/421142542","html_url":"https://github.com/spinnaker/spin/issues/64#issuecomment-421142542","issue_url":"https://api.github.com/repos/spinnaker/spin/issues/64","id":421142542,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTE0MjU0Mg==","user":{"login":"jtk54","id":5456773,"node_id":"MDQ6VXNlcjU0NTY3NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/5456773?v=4","gravatar_id":"","url":"https://api.github.com/users/jtk54","html_url":"https://github.com/jtk54","followers_url":"https://api.github.com/users/jtk54/followers","following_url":"https://api.github.com/users/jtk54/following{/other_user}","gists_url":"https://api.github.com/users/jtk54/gists{/gist_id}","starred_url":"https://api.github.com/users/jtk54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtk54/subscriptions","organizations_url":"https://api.github.com/users/jtk54/orgs","repos_url":"https://api.github.com/users/jtk54/repos","events_url":"https://api.github.com/users/jtk54/events{/privacy}","received_events_url":"https://api.github.com/users/jtk54/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T20:29:40Z","updated_at":"2018-09-13T20:29:40Z","author_association":"CONTRIBUTOR","body":"I think anything you can give me from either Orca's or Gate's service logs would be helpful. It may be worth restarting those two services so there is not so much noise in the logs."}}
{"actor":{"display_login":"jtk54"}}