Error: Cannot get property 'repositories' on null object

I see this has been posted here previously but it is not clear to me how to fix it. I have a C7 with the latest platform software. Connected via enet to a Deco router. I tested accessing both of the repository URLs from my browser (also connected to the same Deco). Works fine. Hubitat pukes.

https://raw.githubusercontent.com/HubitatCommunity/hubitat-packagerepositories/master/settings.json

https://raw.githubusercontent.com/HubitatCommunity/hubitat-packagerepositories/master/repositories.json

Any ideas?

I think the hub network settings are ok - please comment if not. Thanks,

Also just confirmed all DNS settings in my Deco (Internet Settings and Advanced/DHCP) are set to the 8.8.8.8 and 8.8.4.4. Don't know what else to check to do.

One last data point - I have 2 tiles on my dashboard that go out and get an image from the net (e.g. https://s.w-x.co/staticmaps/wu/wxtype/county_loc/pie/animate.png). These work fine. Would this indicate that the hub does indeed have access to the net and DNS?

Not necessarily -- these would be fetched by the browser displaying the dashboard, no hub involved for that.

No need to guess, though. Check your hub's ability to ping an Internet hostname, such as github.com, using the Network Test tool on the Network Setup page as one way you can test this, and try the troubleshooting steps there if it fails.

1 Like

Hey thanks for the quick reply. Ping totally fails. No idea why. The hubitat settings for the mask, gateway, and dns match exactly the PC I am typing this on. All the other devices on my network work perfectly (many have fixed IP addresses, some are DHCP).

I can ping all other devices connected to the TP Link / Deco of course. Cannot ping the cable modem/gateway at 192.168.5.1 even using it's IP address. This just should not be so hard...

If you don't need custom DNS settings or other setup, have you tried a network reset, as suggested above?

A plain reboot (from Settings) may also help. A network reset will perform one on its own as well.

2 Likes

Is there a reason you are using static on the hub, and not an address reservation within the router?

Typically people have a better experience when they set the hub to DHCP and let the router handle the address reservation.

1 Like

Yes the reason is that both the Sonos app and the iPad dashboards constantly have problems unless both them and the hub are static. I have an iPad mounted on the wall with the dashboard up at all times. Get red exclamation point and/or stale dashboard info constantly. Only solution I have found is to make the hub static (both on the hub end and on the router end). Otherwise the dashboard status is very unreliable. Likewise if for any reason the Sonos change IP the app is fubar until I delete it and re-add it. So now the hub, Sonos, and iPad are all static. Very stable now.

Got it fixed. Gateway IP address was my modem and not the Deco. Thanks for the quick replies - appreciate it.

1 Like

Having a dhcp reservation and static ip on the device at the same time can cause other issues. Would be best to stick to one or the other.

1 Like

I see this issue only on my c7 and not my c8.
DHCP statically assigns IP. I have tried different DNS settings. I can reach GitHub. I attempted to reload the app code. Still, I get the simulator message.

2024-08-14 07:38:27.694 PMerrorjava.lang.NullPointerException: Cannot get property 'repositories' on null object on line 4067 (method prefSettings)

app:362024-08-14 07:38:27.639 PMinfoSkip download of https://raw.githubusercontent.com/HubitatCommunity/hubitat-packagerepositories/master/repositories.json: groovyx.net.http.HttpResponseException: status code: 500, reason phrase: Internal Server Error Please notify the package developer.

In settings > Network > Tools
Try to ping a domain like githubusercontent.com and see what it comes back with. That will test the DNS resolution and reachability at the same time.

Thanks. I don't know what happened. It just started working—strangest thing. I was working through remote admin, but the c8 worked, and the c7 didn't. I was dropping off my daughter at school and drove 8 hours home. It started working.