TypeError: no implicit conversion of String into Integer

755 views
Skip to first unread message

linjinquant...@gmail.com

unread,
Apr 18, 2014, 3:48:41 AM4/18/14
to team_da...@googlegroups.com
when i create a  status use  http_proxy,and i got this error :TypeError: no implicit conversion of String into Integer
my jsonStr is :
[
{"status":2,"value":"2013/01/01","lable":"test1"},
{"status":3,"value":"1014/01/01","lable":"test2"}
]

Frederik Dietz

unread,
Apr 21, 2014, 5:29:42 AM4/21/14
to team_da...@googlegroups.com
Hello!

this TypeError in ruby usually is caused by accessing an array via string instead of integer value.

Hmmm.. Not sure what's causing the problem.

Note, that you mispelled "label" (you use "lable" instead), not sure though if that caused the problem.

Anyways, I suggest to look into the log file to point you to the line of code causing the problem. Additionally, in app/models/sources/status_table there's some plugins you can try too. One uses a json demo file, so these are some good examples to play around with to debug your problem further.

Cheers,
Frederik


--
You received this message because you are subscribed to the Google Groups "Team Dashboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to team_dashboar...@googlegroups.com.
To post to this group, send email to team_da...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/team_dashboard/fd1eb8b5-bb74-4371-8bd4-2aa4a90dd220%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages