brandynprasad / asin_lookup Goto Github PK
View Code? Open in Web Editor NEWASIN Lookup is a tool for fetching Amazon.com product information based on a user-provided ASIN code
ASIN Lookup is a tool for fetching Amazon.com product information based on a user-provided ASIN code
Hello,
2 problem found one solved other not yet.
Chrome desn't run as root, so i have changed the "route/product.js" to add --no sandbox
Solved this, i have this error:
2019-12-09T21:39:57.771Z - verbose: Creating mongoose instance context=Database 2019-12-09T21:39:57.773Z - verbose: Mongoose instance created context=Database 2019-12-09T21:39:57.773Z - verbose: Attaching plugins context=Database 2019-12-09T21:39:57.774Z - verbose: Plugins attached context=Database 2019-12-09T21:39:57.774Z - verbose: Registering models context=Database 2019-12-09T21:39:57.781Z - verbose: Models registered context=Database 2019-12-09T21:39:57.811Z - verbose: Creating express app and HTTP server instance context=Server 2019-12-09T21:39:57.813Z - verbose: Express app and HTTP server instance created context=Server 2019-12-09T21:39:57.818Z - verbose: Attaching middleware to express app context=Server 2019-12-09T21:39:57.819Z - verbose: Middleware attached context=Server 2019-12-09T21:39:57.819Z - verbose: Attaching resource routers to express app context=Server 2019-12-09T21:39:57.820Z - verbose: Resource routers attached context=Server 2019-12-09T21:39:57.820Z - verbose: Attaching error handler context=Server 2019-12-09T21:39:57.820Z - verbose: Error handler attached context=Server 2019-12-09T21:39:57.820Z - verbose: Starting AsinLookup context=AsinLookup 2019-12-09T21:39:57.821Z - verbose: Connecting to database context=Database 2019-12-09T21:39:57.843Z - verbose: Attempting to bind HTTP server to http://localhost:8000 context=Server (node:30901) DeprecationWarning:
open()is deprecated in mongoose >= 4.11.0, use
openUri()instead, or set the
useMongoClientoption if using
connect()or
createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client
2019-12-09T21:39:57.857Z - verbose: HTTP server bound context=Server
2019-12-09T21:39:57.952Z - verbose: Connected to database context=Database
2019-12-09T21:39:57.958Z - verbose: Registering AsinLookup as a service with Consul context=AsinLookup
2019-12-09T21:39:57.958Z - verbose: AsinLookup ready and awaiting requests context=AsinLookup
2019-12-09T21:39:57.958Z - info: Listening for HTTP requests at http://localhost:8000 context=AsinLookup
2019-12-09T21:40:02.284Z - info: Incoming request httpVersion=1.1, method=GET, url=/product/B071CV8CG2, host=localhost:8000, user-agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0, accept=text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8, accept-language=en-US,en;q=0.5, accept-encoding=gzip, deflate, referer=http://localhost:8000/search, connection=keep-alive, upgrade-insecure-requests=1,
2019-12-09T21:40:02.289Z - info: Finding product with asin B071CV8CG2
(node:30901) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'replace' of undefined
at puppeteer_evaluation_script:4:64
at ExecutionContext._evaluateInternal (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/ExecutionContext.js:122:13)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async ExecutionContext.evaluate (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/ExecutionContext.js:48:12)
at async /var/www/test/reverseasin/asin_lookup/route/product.js:28:24
-- ASYNC --
at ExecutionContext. (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/helper.js:111:15)
at DOMWorld.evaluate (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/DOMWorld.js:112:20)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
-- ASYNC --
at Frame. (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/helper.js:111:15)
at Page.evaluate (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/Page.js:833:43)
at Page. (/var/www/test/reverseasin/asin_lookup/node_modules/puppeteer/lib/helper.js:112:23)
at /var/www/test/reverseasin/asin_lookup/route/product.js:28:35
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:30901) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:30901) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
`
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.