ALoRa icon indicating copy to clipboard operation
ALoRa copied to clipboard

Value can not be NULL

Open hjojohan opened this issue 5 years ago • 7 comments

Hi Ekwus, I have been running your Alora code for a while now, and it have been working OK. Lately I have several crashes, and I cant fix it. Do you know whats causing this ?

image

hjojohan avatar Sep 04 '19 15:09 hjojohan

Hey

I've not check the Alora library in a while, maybe The Things Network API has changed. I'll try and find some time later to get the test system running to check that.

If you can provide a stack trace from your error that might help pin point this specific issue.

Cheers

Dave

ekwus avatar Sep 04 '19 15:09 ekwus

This is what I could get out image

hjojohan avatar Sep 05 '19 05:09 hjojohan

This is another screenshoot. Hope it can be of some help, tracking down this nasty bug :-)

image

hjojohan avatar Sep 05 '19 05:09 hjojohan

Hey

The payload_raw property of the data being received from TTN looks to be null! Either the API has changed or the service/message configuration has been changed on the TTN side

ekwus avatar Sep 05 '19 11:09 ekwus

So could you please do a workaround then if your code detects that the rawmessage is null then do nothing to avoid crash, The message dont contain anythin of value anyway.. That the rawmessage isnull maybe is caused by faulty device or gateay ?

hjojohan avatar Sep 05 '19 11:09 hjojohan

I've made a few changes to check for null and catch any exception thrown when the messages are being deserialised.

You should be able to pull the latest nuget package and give it a live test.

ekwus avatar Sep 05 '19 14:09 ekwus

I downloaded and installed the new packet and running again, lets see if we can running without unwanted stopps related to bad devices. -Thanks alot Ekwus :-)

hjojohan avatar Sep 05 '19 14:09 hjojohan