Getting "json: cannot unmarshal string into Go struct field EmailConn.toaddr of type []string" #464
-
Hi, I am new to pg_timetable and I am configuring it for one of our clients. I have created a task with a built-in Send email function but when i am executing it is giving me the below error. Could you please advise what needs to be done to fix it? I am getting this below error in one of my tasks. Error: json: cannot unmarshal string into Go struct field EmailConn.toaddr of type []string Code: timetable=> insert into timetable.parameter(task_id, order_id , value) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey, thanks a lot for your interest. The thing is
more details: https://pg-timetable.readthedocs.io/en/master/components.html#parameter-value-format |
Beta Was this translation helpful? Give feedback.
Hey,
thanks a lot for your interest. The thing is
toaddr
can hold several recipients. That's why it should be an array, e.g.more details: https://pg-timetable.readthedocs.io/en/master/components.html#parameter-value-format