Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing json to stdin fails worker api #9

Open
harshadyeola opened this issue Sep 9, 2016 · 0 comments
Open

Passing json to stdin fails worker api #9

harshadyeola opened this issue Sep 9, 2016 · 0 comments
Assignees
Labels

Comments

@harshadyeola
Copy link
Contributor

curl http://127.0.0.1:7000/v1/jobs -H "Content-Type: application/json" -X POST -d '{"worker_id": "acb4b32d-b141-4ce5-8e7f-d449af6addac", "stdin": "{"projectId":"xxxxxxxx","oauthToken":"xxxxxx","workerPayloads":[]}", "env": {"HI": "BYE"}}'
worker_1     | panic: runtime error: invalid memory address or nil pointer dereference
worker_1     | [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x4602cc]
worker_1     | 
worker_1     | goroutine 75 [running]:
worker_1     | panic(0x8ba5e0, 0xc42000a030)
worker_1     |  /usr/local/go/src/runtime/panic.go:500 +0x1a1
worker_1     | github.com/shoppinpal/dolaterio/runner.Run(0xc42017f4d0, 0xc42018d7e0, 0x0, 0x0)
worker_1     |  /root/work/src/github.com/shoppinpal/dolaterio/runner/run.go:17 +0x7c
worker_1     | github.com/shoppinpal/dolaterio/runner.(*JobRunner).run(0xc420196690)
worker_1     |  /root/work/src/github.com/shoppinpal/dolaterio/runner/job_runner.go:99 +0x110
worker_1     | created by github.com/shoppinpal/dolaterio/runner.(*JobRunner).Start
worker_1     |  /root/work/src/github.com/shoppinpal/dolaterio/runner/job_runner.go:52 +0x4f
@harshadyeola harshadyeola self-assigned this Sep 9, 2016
harshadyeola added a commit that referenced this issue Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant