dasher icon indicating copy to clipboard operation
dasher copied to clipboard

URL error

Open keithschm opened this issue 7 years ago • 3 comments

anyone else have this?

TypeError: Parameter "url" must be a string, not undefined at Url.parse (url.js:103:11) at Object.urlParse [as parse] (url.js:97:13) at doRequest (/home/dasher/lib/dasher.js:61:14) at Readable.<anonymous> (/home/dasher/lib/dasher.js:31:7) at emitOne (events.js:116:13) at Readable.emit (events.js:211:7) at PcapSession.<anonymous> (/home/dasher/node_modules/node-dash-button/index.js:87:28) at emitOne (events.js:116:13) at PcapSession.emit (events.js:211:7) at PcapSession.on_packet_ready (/home/dasher/node_modules/pcap/pcap.js:99:10)

keithschm avatar Feb 26 '18 01:02 keithschm

What does your config look like?

On Feb 25, 2018, at 8:17 PM, keithschm [email protected] wrote:

anyone else have this?

TypeError: Parameter "url" must be a string, not undefined at Url.parse (url.js:103:11) at Object.urlParse [as parse] (url.js:97:13) at doRequest (/home/dasher/lib/dasher.js:61:14) at Readable. (/home/dasher/lib/dasher.js:31:7) at emitOne (events.js:116:13) at Readable.emit (events.js:211:7) at PcapSession. (/home/dasher/node_modules/node-dash-button/index.js:87:28) at emitOne (events.js:116:13) at PcapSession.emit (events.js:211:7) at PcapSession.on_packet_ready (/home/dasher/node_modules/pcap/pcap.js:99:10)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

maddox avatar Feb 26 '18 03:02 maddox

I removed private info and replaced with -

`{"buttons":[ { "name": "Debug Dash Button", "address": "f0:27:2d:d0:1b:e9", "debug": true },

{ "name": "ifttt", "address": "f0:27:2d:d0:1b:e9", "url": "https://maker.ifttt.com/trigger/--------/with/key/---------------", "method": "POST", "debug": false } ]} `

keithschm avatar Feb 26 '18 11:02 keithschm

It is odd. If I hard code the urlin the dasher.js file it works fine.

keithschm avatar Feb 28 '18 12:02 keithschm