dzt / shopify-monitor Goto Github PK
View Code? Open in Web Editor NEWUpdates you on the latest drops, restocks, and much more for your favorite brands!
Updates you on the latest drops, restocks, and much more for your favorite brands!
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]prestart: no script for prestart, continuing
6 silly lifecycle [email protected]
7 info lifecycle [email protected]start: [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\users\jiano\shopify-monitor\node_modules.bin;C:\Users\Jiano\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Jiano\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\xampp\php;C;C:\Program Files\Git\Users\Jiano\d3stryr-3stripes-dev.php;C:\Users\Jiano\AppData\Local\Programs\Python\Python35-32;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Skype\Phone;C:\Apps\phantomjs-2.1.1-windows\bin;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\Jiano\AppData\Local\Programs\Python\Python35-32\Scripts;C:\Users\Jiano\AppData\Local\Programs\Python\Python35-32;C:\Users\Jiano\AppData\Local\Microsoft\WindowsApps;C;C:\Program Files\Git\xampp\php;C:\Users\Jiano\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perlstart: CWD: C:\users\jiano\shopify-monitor
10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]start: Args: [ '/d /s /c', 'node --expose_gc monitor.js' ]start: Returned: code: 1 signal: null
12 silly lifecycle [email protected]
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: node --expose_gc monitor.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\users\jiano\shopify-monitor
17 error Windows_NT 10.0.14393
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
19 error node v6.9.5
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] start: node --expose_gc monitor.js
22 error Exit status 1
23 error Failed at the [email protected] start script 'node --expose_gc monitor.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the shopify-monitor package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node --expose_gc monitor.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs shopify-monitor
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls shopify-monitor
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
When the monitor first starts up the correct matches are found but when it continues running random items are matched that do not contain any of the key words.
fixed
Hi, yeah I ran my Json through that site and it said it was clear
It would be awesome if you could give a list of a bunch of sneaker shopify based sites :P
Manual gc { rss: 626298880,
heapTotal: 104943616,
heapUsed: 40470848,
external: 5100094 }
Anyway to get rid of this on the console
thanks
I have the bot and slash command integration setup but how do i get the notifications?
Seems to be happening with the new pull.
after the inital check i get this error,
C:\Users\Daniel\shopify-monitor-master\lib\index.js:31
for (var i = 0; i < jsonBodyProduct.product.variants.length; i++) {
^
TypeError: Cannot read property 'variants' of undefined
at Request._callback (C:\Users\Daniel\shopify-monitor-master\lib\index.js:31:56)
at Request.self.callback (C:\Users\Daniel\shopify-monitor-master\node_modules\request\request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:192:7)
at Request. (C:\Users\Daniel\shopify-monitor-master\node_modules\request\request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:189:7)
at IncomingMessage. (C:\Users\Daniel\shopify-monitor-master\node_modules\request\request.js:1091:12)
at Object.onceWrapper (events.js:291:19)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:186:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Thanks
Hi, is there anyway to stop/start the monitor without it grabbing all the stock and posting notifications for that.
YzySeason-Macbook-Pro:shopify-monitor yzyseason$ node monitor
/Users/yzyseason/Desktop/shopify-monitor/monitor.js:68
let data = {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3
can i paste localhost:1337 address to slash URL and run /monitor in slack?
stock count always comes up as unavailable
Hey, I got the monitor set up and it was working fine, but when I added a few new sites it started throwing this error.
/Users/c/shopify-monitor/lib/index.js:113
image: products[i].images[0].src,
^
TypeError: Cannot read property 'src' of undefined
at Request._callback (/Users/c/shopify-monitor/lib/index.js:113:49)
at Request.self.callback (/Users/c/shopify-monitor/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/Users/c/shopify-monitor/node_modules/request/request.js:1081:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (/Users/c/shopify-monitor/node_modules/request/request.js:1001:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
I renamed the config.example.json to config.json but when I run node monitor.js it returns
Yeezy-Mac-Pro:shopify-monitor yeezyseason$ node monitor.js
[07:43:40] Missing, config.json file or invalid json syntax.
Possible to make make tuto for Linux ?
I get the following error after starting the program. It also seems as though the program tweets initial results because I start the program, it finds a bunch of matches, tweets a lot of them out, then crashes due to the following error. I have new and restocks set to false and keywords set to true. Should I set them all to false? Thank you.
var links = res.links.join('\n')
^
TypeError: res.links.join is not a function
at send (C:\Users\da_so\Desktop\shopify-monitor-master\shopify-monitor-master\monitor.js:408:35)
at lib.getStockData (C:\Users\da_so\Desktop\shopify-monitor-master\shopify-monitor-master\monitor.js:396:13)
at Request._callback (C:\Users\da_so\Desktop\shopify-monitor-master\shopify-monitor-master\lib\index.js:71:20)
at self.callback (C:\Users\da_so\Desktop\shopify-monitor-master\shopify-monitor-master\node_modules\request\request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (C:\Users\da_so\Desktop\shopify-monitor-master\shopify-monitor-master\node_modules\request\request.js:845:8)
at emitOne (events.js:101:20)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
I am running the monitor on a Digital Ocean -1 GB Memory / 20 GB Disk / NYC3 - Ubuntu 14.04.5 x64
The process seems to be running out of memory but shouldn't the manual garbage collections prevent that from occurring? Does it have to do with the console logs I uncommented so I could watch the monitor function?
Here is the console log: https://pastebin.com/2z87fFLZ
Here is the NPM Debug: https://pastebin.com/4PMV95Y8
Any input appreciated!
hey, i set up my twitter and gave all the requested info. it is not tweeting out although monitor shows new items added
I get this error when I enter $ npm install
Missing, config.json file or invalid json syntax.
I ran the config.json file through jsonlint and it says it was valid
Hey,
I did setup the config file, did all the setup things, but when I type node monitor.js on my terrminal
[11:39:06] Missing, config.json file or invalid json syntax.
So Slack seems to be working fine. However, twitter doesn't seem to tweet everything as slack does. What could it be?
occasionally the program will see the sitemap as empty and then see the sitemap with all products marking them all as new and attempting to tweet every item on the sitemap
Hey, I added a few sites and the monitor seems to be freezing up now after the searching for keywords message.
Issue solved. You can delete this issue.
$ node monitor.js
Garbage collection is not exposed
C:\Users\user\Desktop\shopify-monitor\monitor.js:52
var a = configuration.keywords
^
ReferenceError: configuration is not defined
at Object. (C:\Users\user\Desktop\sitemon\shopify-monitor\monitor.js:52:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Can someone teach me how to remove this Stock Count in monitor.js Thanks
WMNS Adidas NMD_R1 - Black/White/Grey
$140.00
Stock Count: Unavailable
but when i clicked there are sizes available.
i just want to remove that Stock Count. Thanks
I am getting the following in the error debug log. Is there a fix for this?
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]prestart: no script for prestart, continuing
6 silly lifecycle [email protected]
7 info lifecycle [email protected]start: [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\xxxx\shopify-monitor\node_modules.bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Program Files\MATLAB\MATLAB Production Server\R2015a\runtime\win64;E:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin;E:\Program Files\MATLAB\MATLAB Production Server\R2015a\polyspace\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Windows\System32\WindowsPowerShell\v1.0;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\xxxx\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\xxxx\AppData\Local\Programs\Python\Python36-32;C:\Users\xxxx\AppData\Roaming\npmstart: CWD: C:\Users\xxxx\shopify-monitor
10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]start: Args: [ '/d /s /c', 'node --expose_gc monitor.js' ]start: Returned: code: 1 signal: null
12 silly lifecycle [email protected]
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: node --expose_gc monitor.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:885:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\Users\xxxx\shopify-monitor
17 error Windows_NT 6.1.7601
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
19 error node v7.4.0
20 error npm v4.0.5
21 error code ELIFECYCLE
22 error [email protected] start: node --expose_gc monitor.js
22 error Exit status 1
23 error Failed at the [email protected] start script 'node --expose_gc monitor.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the shopify-monitor package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node --expose_gc monitor.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs shopify-monitor
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls shopify-monitor
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Chances you could make a video showing how to deploy this to a server? Preferably AWS.
monitor.js instant crashing after the last update that was pushed 5 minutes ago
lol i'm an idiot. just realized the issue, sry. this can be closed.
Is there a file in here that shows a log of which site is finding what products? One of my sites is shooting a crap load of products and crashing my .json, so without having to test one by one is there a log to see which one it is? So i can delete it.
When I click on the setting up on linux server, it takes me to the Slack configuration guide you made
Having an issue after running the monitor for a while:
var links = res.links.join('\n')
^
TypeError: res.links.join is not a function
at send (/root/xbz123/monitor.js:408:35)
at lib.getStockData (/root/xbz123/monitor.js:396:13)
at Request._callback (/root/xbz123/lib/index.js:71:20)
at self.callback (/root/xbz123/node_modules/request/request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/root/xbz123/node_modules/request/request.js:845:
8)
at emitOne (events.js:101:20)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1278:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
I've updated the API token for the slack integration in the json file and the channel shows when the shopify monitor is active, but it doesn't show the updated items (they show up in the terminal window though). How do I integrate that?
for (var i = 0; i < jsonBodyProduct.product.variants.length; i++) {
^
TypeError: Cannot read property 'variants' of undefined
this happens only when I have Keywords set to true
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.