supreme-api icon indicating copy to clipboard operation
supreme-api copied to clipboard

TypeError: callback is not a function

Open BertramShell opened this issue 7 years ago • 6 comments

Hello When trying to call the watch for new items this pops out.

supreme.onNewItem(5, (product, err) => { if (err) { console.log(err); return err; } console.log('New Release: ' + item.name); });

TypeError: callback is not a function /node_modules/supreme-api/index.js:227:13 at Request._callback /node_modules/supreme-api/index.js:52:22) at Request.self.callback node_modules/request/request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request. node_modules/request/request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage. node_modules/request/request.js:1091:12) at IncomingMessage.g (events.js:292:16)

Thanks for the awsom api 👍

BertramShell avatar Sep 13 '17 18:09 BertramShell

Having exactly the same problem.Any solution?

AndreiTuta avatar Nov 07 '17 12:11 AndreiTuta

Still no update?Or at least a working api call?

AndreiTuta avatar Nov 10 '17 14:11 AndreiTuta

im having same problem...

kingfly55 avatar Nov 10 '17 19:11 kingfly55

https://github.com/Logfro/supreme-api <--- Working version

Logfro avatar Nov 10 '17 22:11 Logfro

i got the same error with that version....

kingfly55 avatar Nov 10 '17 23:11 kingfly55

Oh i see, onNewItem hasnt been created yet.

kingfly55 avatar Nov 11 '17 15:11 kingfly55