# Packet REJECTED (jit error=2) on Join Response

**URL:** <https://www.thethingsnetwork.org/forum/t/packet-rejected-jit-error-2-on-join-response/28372>\
**Category:** End Devices (Nodes)\
**Created:** [July 24, 2019, 11:46am UTC](https://www.thethingsnetwork.org/forum/t/packet-rejected-jit-error-2-on-join-response/28372 "2019-07-24T11:46:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bk52](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bk52/32/25844_2.png) [@bk52](https://www.thethingsnetwork.org/forum/u/bk52)\
**Post date:** [July 24, 2019, 11:46am UTC](https://www.thethingsnetwork.org/forum/t/packet-rejected-jit-error-2-on-join-response/28372/1 "2019-07-24T11:46:30Z")

</div>

Hello,

I try to develop my own network server. I use [Semtech Packet Forwarder](https://github.com/Lora-net/packet_forwarder/blob/master/PROTOCOL.TXT) on gateway. I receive messages from gateway via UDP, process them then return response.

I tested my network server yesterday and end device activated successfully. The packet logs is below

> **JSON up:** {“rxpk”:[{“tmst”:30915763,“chan”:0,“rfch”:1,“freq”:868.100000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:10.5,“rssi”:-65,“size”:23,“data”:“AEDaAdB+1bNworF3OF/UwQA4XrTLMrE=”}]}  
> **INFO:** [up] **PUSH\_ACK received in 14 ms**  
> **INFO:** [down] **PULL\_RESP received - token[221:217]**  
> **JSON down:** {“txpk”:{“imme”:false,“rfch”:0,“powe”:14,“ant”:0,“brd”:0,“tmst”:35915763,“freq”:868.1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“ipol”:true,“size”:33,“data”:“IAk1vCBIp9YdCyWRlQX+GoiVtUKp1ng9nrb+hz0/QKyP”}}

Today I restarted all system devices (gateway, network server and end-device) and I got this error during OTAA.

> **JSON up:** {“rxpk”:[{“tmst”:15806531,“chan”:2,“rfch”:1,“freq”:868.500000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:8.8,“rssi”:-69,“size”:23,“data”:“AEDaAdB+1bNworF3OF/UwQDStXYnUMs=”}]}  
> **INFO:** [up] **PUSH\_ACK received in 6 ms**  
> **INFO:** [down] **PULL\_ACK received in 10 ms**  
> **INFO:** [down] **PULL\_RESP received** - token[109:55]  
> **JSON down:** {“txpk”:{“imme”:false,“tmst”:20806531,“freq”:868.5,“rfch”:0,“powe”:14,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“fdev”:0.0,“ipol”:true,“prea”:0,“size”:33,“data”:“IBMVtH/Dz63YHiqdCqEuToB/4Zc/ryH2hlr8gO7VKxXs”,“ncrc”:true}}  
> src/jitqueue.c:251:jit\_enqueue(): ERROR: Packet REJECTED, timestamp seems wrong, too much in advance (current=22870252, packet=20806531, type=0)  
> ERROR: Packet REJECTED (jit error=2)

For now, I get tmst value from end-device with rxpk package and add 5000000 to this value then I send (tmst+5000000) to end-device. I get this error and end-device didn’t connect to network server yet.

**P.S. 1 :** LoraWan 1.0.2 used  
**P.S. 2 :** Gateway module doesn’t have GPS

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [July 24, 2019, 12:03pm UTC](https://www.thethingsnetwork.org/forum/t/packet-rejected-jit-error-2-on-join-response/28372/2 "2019-07-24T12:03:53Z")

</div>

> [@bk52](#):
>
> I try to develop my own network server

this is not related to TTN

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [July 24, 2019, 3:00pm UTC](https://www.thethingsnetwork.org/forum/t/packet-rejected-jit-error-2-on-join-response/28372/3 "2019-07-24T15:00:08Z")

</div>

Indeed, this is off topic, you’ve taken on a _huge_ project that cannot really be supported here, as this forum is about TTN and thus using TTN’s existing network servers.

You seem to be scheduling a reply that is so late (~2 seconds in the past) that it would only be hit once the 32-bit counter rolls over in about 71 minutes.

Make sure you aren’t processing stale uplink data, and that you don’t have excessive latency in getting your replies back to the gateway. Since this is being rejected, it’s likely that the error is survivable and that the next timely reply you attempt will work.
