I’ve been attempting to send comma-separated strings to my Spark.Function and I’ve noticed that the core will reset if I sent strings greater than 64 characters in length. Is 64 characters the limit? Is this documented somewhere? I wasn’t able to find it.
Ah yes, right now the maximum function argument length is 64 characters, it’s in the docs here:
http://docs.spark.io/#/firmware/data-and-control-spark-function
A Spark function is set up to take one argument of the String datatype. This argument length is limited to a max of 64 characters.
Thanks!
David
I was trying to send a JSON configuration to my Spark and it fails for this reason too.
Unfortunately I discovered this limitation too after I coded the whole JSON parsing logic…
Any plans to lift this limit? 64 is indeed very limiting
Hi @idok
What I did to work around this make the JSON field names a single unique character:
`{“a”: 12, “b”: “string me”, “c”: 3.14159}
Hi @idok,
I agree that this length does seem limiting, especially if you’re returning JSON. I created an issue for this here where we can talk about it since there are resources / bandwidth / ram costs involved potentially:
Thanks!
David
That ticket resulted in an increase is the published message length. However, the original post was concerning the function argument limit, which remains 63.