Dashboard and dev just spinning?


#61

I’m not certain exactly what you’ve commented out, can you paste that code here please?


#62
  ] + (sendDevices ? [/*contacts: listAvailableContacts(false, updateCache),*/ devices: listAvailableDevices(false, updateCache)] : [:])
    ,

#63

Ok thanks, I will revisit this tomorrow. Currently I’m seeing everything working fine with a phone only contact and without the contact.contact? patch… weird and possibly something else going on here.


#64

very odd indeed - especially since I have none even available to select - I would think it would skip all this.


#65

Ok, new approach for today to keep it easier for you. I’ll manage the code on my end, since ST blocks stack traces we have to go a bit overboard with debug logging.

  1. In ST dev console, go to the My Smart Apps tab
  2. Click Settings
  3. Add a repository with owner idpaterson name webCoRE branch experiments/null-pointer-jjslegacy
  4. Click the pencil icon next to the webCoRE smart app
  5. Click Source Code Options
  6. Select the new repository
  7. Click Update
  8. Repeat 4-7 for webCoRE Storage
  9. Click Update from repo and select the new repo
  10. Publish all changes

This version has more debugging, starting off just with api_get_base_result. I want to see where it fails on each of your devices that has access to the dashboard. When it works properly you should see the following otherwise it will fail somewhere before composed result:

f3dbada9-4816-463b-947b-732a4d1455e5 10:13:04 AM: debug composed result
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:04 AM: debug got modes
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:04 AM: debug got incidents
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:04 AM: debug got hubs
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:04 AM: debug got devices
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:04 AM: debug getChildDevices(false), children=0
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:03 AM: debug got contacts
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:03 AM: debug got global vars
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:03 AM: debug got virtual devices
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:03 AM: debug got pistons
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:03 AM: debug got account
f3dbada9-4816-463b-947b-732a4d1455e5 10:13:03 AM: debug api_get_base_result

Next step depends on what results you have for me. The only functional change in this update is that it ensures that contacts and devices are always loaded to avoid the sometimes-it-works-sometimes-it-doesn’t-ness.


#66

Thanks for sticking with me!

Logging:
713686f8-6e0b-4230-af47-8d5401a376a3 10:34:33 AM: error java.lang.NullPointerException
713686f8-6e0b-4230-af47-8d5401a376a3 10:34:33 AM: debug got global vars
713686f8-6e0b-4230-af47-8d5401a376a3 10:34:33 AM: debug got virtual devices
713686f8-6e0b-4230-af47-8d5401a376a3 10:34:33 AM: debug got pistons
713686f8-6e0b-4230-af47-8d5401a376a3 10:34:32 AM: debug got account
713686f8-6e0b-4230-af47-8d5401a376a3 10:34:32 AM: debug api_get_base_result

failed where expected I suppose - at get contacts (although I have none setup) - any way to get details on what it’s trying to do and why it doesn’t just skip that?


#67

Yeah no surprises there, now I’ll bloat the contacts code.


#68

side note - where you at in Ohio? Cleveland ish here


#69

Awesome. An hour (ish) Southeast of you, outside of Akron.

Next update adds logging in the webCoRE Storage smart app so you’ll need to look at the logs for both. This makes sure it’s going into storage and tries to figure out what contacts it is finding if any.


#70

never made it to the storage app at least in live logging

713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: error java.lang.NullPointerException: Cannot get property ‘title’ on null object
713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: debug getting storage app
713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: debug got global vars
713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: debug got virtual devices
713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: debug got pistons
713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: debug got account
713686f8-6e0b-4230-af47-8d5401a376a3 11:10:31 AM: debug api_get_base_result


#71

Well that’s weird… now updated with more logging on the way to the storage app.


#72

686f8-6e0b-4230-af47-8d5401a376a3 12:06:22 PM: error java.lang.NullPointerException: Cannot get property ‘title’ on null object
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug found storage app
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug getStorageApp
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug getting storage app
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug got global vars
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug got virtual devices
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug got pistons
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug got account
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug api_get_base_result
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug found storage app
713686f8-6e0b-4230-af47-8d5401a376a3 12:06:21 PM: debug getStorageApp


#73

Are you sure you’re looking at all of the live logs and not just the webCoRE piston? The webCoRE Storage app will report separately, you can see them both under All.


#74

sadly so - nothing shows from storage app


#75

Ok, I’m off to lunch but if you have a moment, maybe try uninstalling the storage app to see what happens? Will add a bit more logging when I get back.


#76

How would I do that? It’s not really “installed” and trying to delete the app in the UI says it’s installed by one or more users.


#77

Good point, I pushed something to bypass it for now to see if that gets us anywhere.


#78

yes that worked to let me in

59561411-77e8-4a28-8adb-2ecbf4276610 12:55:50 PM: debug description is on/off: 0
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug composed result
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got modes
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got incidents
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got hubs
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got devices
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug getChildDevices(false), children=0
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got contacts
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug listed contacts
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug iterating contacts
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug no storage app
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug getting storage app
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got global vars
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got virtual devices
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got pistons
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug got account
713686f8-6e0b-4230-af47-8d5401a376a3 12:55:44 PM: debug api_get_base_result


#79

Thanks, let’s break it again. I added more logging, be sure that you see updates to both the webCoRE and webCoRE Storage apps this time when updating from GitHub.

EDIT: Just pushed another change, in case you got it updated already please go again.


#80

*edit…hold on

713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: error java.lang.NullPointerException: Cannot get property ‘title’ on null object
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug got storage app
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug found storage app
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug getStorageApp
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug getting storage app
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug got global vars
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug got virtual devices
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug got pistons
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug got account
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug api_get_base_result
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug found storage app
713686f8-6e0b-4230-af47-8d5401a376a3 1:09:55 PM: debug getStorageApp