dzt / supreme-api

:tshirt: :shoe: :computer: Node.js API for supremenewyork.com
MIT License
83 stars 27 forks source link

TypeError: callback is not a function #6

Open BertramShell opened 6 years ago

BertramShell commented 6 years ago

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 👍

AndreiTuta commented 6 years ago

Having exactly the same problem.Any solution?

AndreiTuta commented 6 years ago

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

kingfly55 commented 6 years ago

im having same problem...

Logfro commented 6 years ago

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

kingfly55 commented 6 years ago

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

kingfly55 commented 6 years ago

Oh i see, onNewItem hasnt been created yet.