Closed SimmyD closed 3 years ago
Send alert via discord
app crashes
docker-compose build docker-compose up
ASCII_BANNER= ASCII_COLOR= APNS_AUTHKEY= APNS_BUNDLEID= APNS_DEVICETOKEN= APNS_KEYID= APNS_PRODUCTION= APNS_TEAMID= AUTO_ADD_TO_CART= BROWSER_TRUSTED= DESKTOP_NOTIFICATIONS= DISCORD_NOTIFY_GROUP= DISCORD_NOTIFY_GROUP_1660= DISCORD_NOTIFY_GROUP_3060= DISCORD_NOTIFY_GROUP_3060TI= DISCORD_NOTIFY_GROUP_3070= DISCORD_NOTIFY_GROUP_3080= DISCORD_NOTIFY_GROUP_3090= DISCORD_NOTIFY_GROUP_CORSAIR_SF= DISCORD_NOTIFY_GROUP_RX6800= DISCORD_NOTIFY_GROUP_RX6800XT= DISCORD_NOTIFY_GROUP_RX6900XT= DISCORD_NOTIFY_GROUP_RYZEN5600= DISCORD_NOTIFY_GROUP_RYZEN5800= DISCORD_NOTIFY_GROUP_RYZEN5900= DISCORD_NOTIFY_GROUP_RYZEN5950= DISCORD_NOTIFY_GROUP_SONYPS5C= DISCORD_NOTIFY_GROUP_SONYPS5DE= DISCORD_NOTIFY_GROUP_XBOXSX= DISCORD_NOTIFY_GROUP_XBOXSS= DISCORD_NOTIFY_GROUP_TEST= DISCORD_WEB_HOOK=xxx EMAIL_PASSWORD= EMAIL_TO= EMAIL_USERNAME= HEADLESS= IN_STOCK_WAIT_TIME= LOG_LEVEL= LOW_BANDWIDTH= MAX_PRICE_SERIES_3060= MAX_PRICE_SERIES_3060TI= MAX_PRICE_SERIES_3070= MAX_PRICE_SERIES_3080= MAX_PRICE_SERIES_3090= MAX_PRICE_SERIES_CORSAIR_SF= MAX_PRICE_SERIES_RX6800= MAX_PRICE_SERIES_RX6800XT= MAX_PRICE_SERIES_RX6900XT= MAX_PRICE_SERIES_RYZEN5600= MAX_PRICE_SERIES_RYZEN5800= MAX_PRICE_SERIES_RYZEN5900= MAX_PRICE_SERIES_RYZEN5950= MAX_PRICE_SERIES_SONYPS5C= MAX_PRICE_SERIES_SONYPS5DE= MAX_PRICE_SERIES_XBOXSS= MAX_PRICE_SERIES_XBOXSX= MAX_PRICE_SERIES_TEST= MICROCENTER_LOCATION= MQTT_BROKER_ADDRESS= MQTT_BROKER_PORT= MQTT_CLIENT_ID= MQTT_PASSWORD= MQTT_QOS= MQTT_TOPIC= MQTT_USERNAME= OPEN_BROWSER= PAGE_BACKOFF_MIN= PAGE_BACKOFF_MAX= PAGE_SLEEP_MIN= PAGE_SLEEP_MAX= PAGE_TIMEOUT= PAGERDUTY_INTEGRATION_KEY= PAGERDUTY_SEVERITY= PHILIPS_HUE_API_KEY= PHILIPS_HUE_CLOUD_ACCESS_TOKEN= PHILIPS_HUE_CLOUD_CLIENT_ID= PHILIPS_HUE_CLOUD_CLIENT_SECRET= PHILIPS_HUE_CLOUD_REFRESH_TOKEN= PHILIPS_HUE_LAN_BRIDGE_IP= PHILIPS_HUE_LIGHT_COLOR= PHILIPS_HUE_LIGHT_IDS= PHILIPS_HUE_LIGHT_PATTERN= PHONE_CARRIER= PHONE_NUMBER= PLAY_SOUND= PROXY_ADDRESS= PROXY_PROTOCOL= PROXY_PORT= PUSHBULLET= PUSHOVER_EXPIRE= PUSHOVER_RETRY= PUSHOVER_TOKEN= PUSHOVER_USER= PUSHOVER_PRIORITY= PUSHOVER_SOUND= RESTART_TIME= SCREENSHOT= SHOW_ONLY_BRANDS= SHOW_ONLY_MODELS= SHOW_ONLY_SERIES=3090 SLACK_CHANNEL= SLACK_TOKEN= SMARTTHINGS_TOKEN= SMARTTHINGS_SWITCH_LABEL= SMTP_ADDRESS= SMTP_PORT= STORES=dcomp TELEGRAM_ACCESS_TOKEN= TELEGRAM_CHAT_ID= TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN= TWILIO_FROM_NUMBER= TWILIO_TO_NUMBER= TWITCH_ACCESS_TOKEN= TWITCH_CHANNEL= TWITCH_CLIENT_ID= TWITCH_CLIENT_SECRET= TWITCH_REFRESH_TOKEN= TWITTER_ACCESS_TOKEN_KEY= TWITTER_ACCESS_TOKEN_SECRET= TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_TWEET_TAGS= STREAMLABS_ACCESS_TOKEN= STREAMLABS_TYPE= STREAMLABS_IMAGE= STREAMLABS_SOUND= STREAMLABS_DURATION= WEB_PORT=
streetmerchant | STREETMERCHANT streetmerchant | 3.5.0 streetmerchant | [4:12:11 AM] info :: ℹ selected stores: dcomp streetmerchant | [4:12:11 AM] info :: ℹ selected series: 3090 streetmerchant | [4:12:13 AM] info :: ℹ puppeteer config: { streetmerchant | "0": "--disable-dev-shm-usage", streetmerchant | "1": "--no-sandbox", streetmerchant | "2": "--disable-setuid-sandbox", streetmerchant | "3": "--headless", streetmerchant | "4": "--disable-gpu" streetmerchant | } streetmerchant | [4:12:32 AM] info :: ✖ [dcomp] [asus (3090)] tuf :: OUT OF STOCK streetmerchant | [4:12:39 AM] info :: ✖ [dcomp] [asus (3090)] strix oc :: OUT OF STOCK streetmerchant | [4:12:46 AM] info :: ✖ [dcomp] [gigabyte (3090)] aorus master :: OUT OF STOCK streetmerchant | [4:12:52 AM] info :: ✖ [dcomp] [gigabyte (3090)] aorus xtreme :: OUT OF STOCK streetmerchant | [4:12:59 AM] info :: ✖ [dcomp] [gigabyte (3090)] aorus xtreme waterforce :: OUT OF STOCK streetmerchant | [4:13:06 AM] info :: 🚀🚨 [dcomp] [gigabyte (3090)] aorus xtreme waterforce wb :: IN STOCK 🚨🚀 streetmerchant | https://dcomp.com.au/productdetail/3417 streetmerchant | [4:13:06 AM] info :: ✔ discord message sent streetmerchant | node:events:346 streetmerchant | throw er; // Unhandled 'error' event streetmerchant | ^ streetmerchant | streetmerchant | Error: spawn xdg-open ENOENT streetmerchant | at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19) streetmerchant | at onErrorNT (node:internal/child_process:480:16) streetmerchant | at processTicksAndRejections (node:internal/process/task_queues:81:21) streetmerchant | Emitted 'error' event on ChildProcess instance at: streetmerchant | at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12) streetmerchant | at onErrorNT (node:internal/child_process:480:16) streetmerchant | at processTicksAndRejections (node:internal/process/task_queues:81:21) { streetmerchant | errno: -2, streetmerchant | code: 'ENOENT', streetmerchant | syscall: 'spawn xdg-open', streetmerchant | path: 'xdg-open', streetmerchant | spawnargs: [ 'https://dcomp.com.au/productdetail/3417' ] streetmerchant | } streetmerchant | npm notice streetmerchant | npm notice New minor version of npm available! 7.6.3 -> 7.8.0 streetmerchant | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.8.0> streetmerchant | npm notice Run `npm install -g npm@7.8.0` to update! streetmerchant | npm notice streetmerchant | npm ERR! code 1 streetmerchant | npm ERR! path /app streetmerchant | npm ERR! command failed streetmerchant | npm ERR! command sh -c node build/src/index.js streetmerchant | streetmerchant | npm ERR! A complete log of this run can be found in: streetmerchant | npm ERR! /home/appuser/.npm/_logs/2021-04-02T04_13_07_139Z-debug.log streetmerchant exited with code 1
had to add OPEN_BROWSER=false to the env file.
I also made sure this was disabled here: https://github.com/jef/streetmerchant/commit/d13f7f1ff91ada223e8ce7eb50d9a80030cbe668
Expected Behavior
Send alert via discord
Current Behavior
app crashes
Steps to Reproduce
docker-compose build docker-compose up
Environment
Logs