You need to post your code of the node and the debug from node and gateway, otherwise we can't help