Data storage not working with boolean values?

Is it possible that data storage integration might have some issues storing records with null and/or boolean values?

I have 2 applications. One with TTN node and its corresponding payload decoder. The second app has a tektelic device with motion sensor and its corresponding payload decoder.

Both of them are working fine and I can see data as expected in the real time traffic.

However, a strange thing happens with data storage integration.

The data storage integration works fine on TTN app and stores data as expected.

However, the data storage integration is not storing any data on the application with tektelic device. It is able to find the device but returns 404 when queried for data.

The only difference (I think) is that TekTelic sensor also transmits activity data which comes in either as true/false or null.

Could there be any other issue that I should look into?

Thanks.

404 or 204?

My bad. it is showing 204.
Sorry for that.

Also, it seems it’s easily tested. A Decoder does not need to return details that are related to the payload, so you could test with things like:

function Decoder(bytes, port) {
  switch(bytes[0]) {
    case 0x01:
      return {
        a: true,
        b: "string",
        c: 12.3
      };
    case 0x02:
      return {
        ...
      };
    ...
  }
}

And then use a device’s Simulate uplink to test.

Presumably as numbers that the JS decodes - posting it would be useful.

Due to my error with configuring a test application I have four devices that send three different sorts of payloads between them. Those fields that aren’t applicable for a device are returned by the Data Storage as null without any issue. So checking the decoder script seems the best thing to look at.