You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using a Synology NAS box. I have the cli container running on the box and can interact with it.
That box has another feature where I can create a connection to "SMS" services and even define new SMS services the box should use. It can talk to them via REST. Unfortunately they are very limited how I can define what I want to send and how to format it.
My problem is, that I am not able to create a receivers array in json. The Synology interface only accepts one phone number as a receiver and therefore creates something like {... "receivers":""} instead of [""]. So it is a string and not an array. I therefore get the error:
ERRO[1394] json: cannot unmarshal string into Go struct field SendMessageV2.recipients of type []string
Would it be possible to have a "receiver" and "receivers" and the first only accepts a string instead of an array?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am using a Synology NAS box. I have the cli container running on the box and can interact with it.
That box has another feature where I can create a connection to "SMS" services and even define new SMS services the box should use. It can talk to them via REST. Unfortunately they are very limited how I can define what I want to send and how to format it.
My problem is, that I am not able to create a receivers array in json. The Synology interface only accepts one phone number as a receiver and therefore creates something like {... "receivers":""} instead of [""]. So it is a string and not an array. I therefore get the error:
ERRO[1394] json: cannot unmarshal string into Go struct field SendMessageV2.recipients of type []string
Would it be possible to have a "receiver" and "receivers" and the first only accepts a string instead of an array?
Thanks for the great work.
Beta Was this translation helpful? Give feedback.
All reactions