Hi everyone,
I installed lora server some weeks ago and now I’m trying to use a lopy4 with OTAA. However, I had the next problem with the code of example (https://github.com/brocaar/pycom-examples)
This error means that the keys that you have setup are invalid. In other words the MIC is generated with a key that doesn’t match the key in LoRa App Server meaning the MIC can’t be validated.
I had the same issue when configuring a sensor via NFC. It did not properly read the original keys via the NFC process, so the keys where suddenly wrong in the sensor (the device had already joined). So I got the same MIC error on LNS level. Maybe this helps your old case