Stats packet parsing in loraserver

How does the gateway stats packet parsed in the loraserver? Does it directly parse the json packet that are received from the gateway. Please help me out. As i have a few info showing inside the gateway logs regarding stats packet but my loraserver is unable to handle those packets.
It would be helpful if you could guide me in terms of code as i am unable to find how does the server receives and parse the stats packet.

Hi @Sobhan_Thakur
Please post some logs for details

LoraServer Logs

INFO[4473] backend/gateway: gateway stats packet received mac=XXXXXX
ERRO[4473] handle stats packet error: get gateway error: gateway does not exist
INFO[4503] backend/gateway: gateway stats packet received mac=XXXXXX
ERRO[4503] handle stats packet error: get gateway error: gateway does not exist

Can You please post gateway mqtt logs. Did you register the gateway via lora-app-server.

Nope i did not. Does it lead to any issue

I hope you should register the gateway via lora-app-server. Anyway please share the mqtt logs for gateway topic