Error with json payload for gorouter

27 views
Skip to first unread message

Steve Rude

unread,
Apr 16, 2013, 7:18:18 PM4/16/13
to vcap...@cloudfoundry.org
Hi Guys,

I am getting the following error when the ccng tries to register with the gorouter:

{"timestamp":1366154086.090969086,"process_id":3304,"source":"router.global","log_level":"warn","message":"router.register: Error unmarshalling JSON: json: cannot unmarshal string into Go value of type router.Uris","data":{"payload":"{\"host\":\"10.x.x.x\",\"port\":9022,\"uris\":\"api.REDACTED.com\",\"tags\":{\"component\":\"CloudController\"}}"}}"

Is there something I'm doing wrong?  LMK if you need to see my configs.

Thanks,

Steve

Jesse Zhang

unread,
Apr 16, 2013, 10:52:29 PM4/16/13
to vcap...@cloudfoundry.org
Hi Steve,
  "uris" should be an array of strings, not a single string.

Jesse

Julio Lucero

unread,
Apr 22, 2013, 11:58:52 AM4/22/13
to vcap...@cloudfoundry.org
Hi Steve, 

I have the same error, the Jesse solutions works for you? 

And, Where is the JSON?

Julio Lucero

unread,
Apr 22, 2013, 12:04:35 PM4/22/13
to vcap...@cloudfoundry.org
Sorry, I founded it, I'll try to make it work.
Reply all
Reply to author
Forward
0 new messages