From https://api.particle.io/v1/devices?access_token=PASTE_TOKEN_HERE I get this:
[
{
"id": "",
"name": "Irrigation-Particle1",
"last_app": null,
"last_ip_address": "",
"last_heard": "2017-01-19T13:46:09.906Z",
"product_id": 10,
"connected": false,
"platform_id": 10,
"cellular": true,
"status": "normal",
"last_iccid": "",
"imei": "",
"current_build_target": "0.4.9",
"default_build_target": "0.4.9"
}
]
Also when I try the to call my function again from the command line i am now getting a weird error:
Function call failed { Error: connect ENETUNREACH 52.20.20.162:443 - Local (0.0.0.0:53668)
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at connect (net.js:881:16)
at net.js:1010:7
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)
code: 'ENETUNREACH',
errno: 'ENETUNREACH',
syscall: 'connect',
address: '52.20.20.162',
port: 443 }
Tried it again and I got a slightly different error:
Function call failed { Error: getaddrinfo ENOTFOUND api.particle.io api.particle.io:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'api.particle.io',
host: 'api.particle.io',
port: 443 }
Tried it a third time and I simply got
Function call failed Timed out