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?
By deeply searching in the github I arrived till this page where there are a lot of examples, so I could find the right object was ādecoded_payloadā.
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.