Giter Club home page Giter Club logo

shopify-monitor's Issues

TypeError: Cannot read property of 'url' of undefined

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]
6 silly lifecycle [email protected]
prestart: no script for prestart, continuing
7 info lifecycle [email protected]start: [email protected]
8 verbose lifecycle [email protected]
start: unsafe-perm in lifecycle true
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_perl
10 verbose lifecycle [email protected]
start: CWD: C:\users\jiano\shopify-monitor
11 silly lifecycle [email protected]start: Args: [ '/d /s /c', 'node --expose_gc monitor.js' ]
12 silly lifecycle [email protected]
start: Returned: code: 1 signal: null
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 ]

incorrect match found

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.

Errors

Hi, yeah I ran my Json through that site and it said it was clear

Suggestion

It would be awesome if you could give a list of a bunch of sneaker shopify based sites :P

setup slack

I have the bot and slash command integration setup but how do i get the notifications?

Cannot read property

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

Shopify Monitor Stop/Start

Hi, is there anyway to stop/start the monitor without it grabbing all the stock and posting notifications for that.

Node Monitor Wont Run

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

Error on Startup

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)

Config File Problems

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.

Linux

Possible to make make tuto for Linux ?

TypeError: res.links.join is not a function

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)

Cannot get stack trace in GC - Rebalance Allocation Failed

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!

Sorry for the new error.

The program scans for a while then I get the following error (which I assume is triggered because a new product was found and there's an error from that point forward)
screenshot 63

Struggle

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

Running

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.

Error Message after an HR

image

I keep getting the error in the image after running for an hour or two and then the monitor stops. Anyway to avoid it?

Settings:
interval - 12000
sites - 45
active monitors - new and restocks

Also any issues with running keywords, new, and restocks all at the same time?

Twitter Issue

So Slack seems to be working fine. However, twitter doesn't seem to tweet everything as slack does. What could it be?

Atc

hi ATC don't work ? need to open with program
salck

New Error

keep getting this errors after 2 - 10 minutes.
screen shot 2017-04-07 at 1 45 44 am

screen shot 2017-04-07 at 12 58 32 am

sitemap comming up as empty

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

Garbage collection is not exposed

$ 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

Stock Count:

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

Scanner issue after update

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]
6 silly lifecycle [email protected]
prestart: no script for prestart, continuing
7 info lifecycle [email protected]start: [email protected]
8 verbose lifecycle [email protected]
start: unsafe-perm in lifecycle true
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\npm
10 verbose lifecycle [email protected]
start: CWD: C:\Users\xxxx\shopify-monitor
11 silly lifecycle [email protected]start: Args: [ '/d /s /c', 'node --expose_gc monitor.js' ]
12 silly lifecycle [email protected]
start: Returned: code: 1 signal: null
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 ]

Video

Chances you could make a video showing how to deploy this to a server? Preferably AWS.

Not an issue, more of a suggestion.

screen shot 2017-03-15 at 11 23 19 am

Can something like this or similar be added when using slack? Most of the time i end up with the same item (product) sent to the slacked group like 11 times.

Finding file with log?

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.

Setting up on linux server

When I click on the setting up on linux server, it takes me to the Slack configuration guide you made

var res.links.join is not a function

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)

Slack Display

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?

index line 31 error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.