We are using a selfhosted ttn-stack-v3. Everything seems to be working well, except when we try to send a downlink using the Downlink payload formatters.
If we use the example of Downlink Encoder function from: TTN docs
This error code is received also if we change the object “payload_fields” to any other, for example “fields_payloads”. This is why I think we are not using the right object.
· Which object must be sent to execute the Downlink payload formatters?
· Are the Downlink payload formatters a functionality not ready yet?
It works normally if I include the "frm_payload": "vu8=" as in the examples.
Any clue why? I thought the frame would be optional, but perhaps it isn’t?
Wild guess: if you (only) provide decoded_payload then V3 will use your Decoder. which has an error that, in your case, throws "e is undefined". But when (also) providing frm_payload then there’s no need to run the Decoder, so all is fine as far as V3 is concerned.
I’d say: check your Decoder, or show its code here.
Did you find the solution to the TypeError?
I’m running into the same issue. My encoder function is similar to yours, first getting the drop downlink data message - invalid output of type float64 error. That was fixed by adding & 0x00FF to each value in the byte array. Now console error is
Something went wrong when displaying this event arrow_drop_down Show raw payload
Error cause
{
“name”: “TypeError”,
“message”: “undefined is not an object (evaluating ‘e.replace’)”,
“cause”: “vc”
}
Any idea what cause “vc” is? I ran the encoder function through the debugger and it didn’t find any errors.