Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get Offspring scraper to work #1

Open
NSkicks opened this issue Jun 15, 2023 · 0 comments
Open

Unable to get Offspring scraper to work #1

NSkicks opened this issue Jun 15, 2023 · 0 comments

Comments

@NSkicks
Copy link

NSkicks commented Jun 15, 2023

@navkuun

Hello - having issues when running - userAgents.js is present in Data folder

node:internal/modules/cjs/loader:1073
throw err;
^

Error: Cannot find module 'Data/userAgents.js'
Require stack:

  • C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)
    at Module._load (node:internal/modules/cjs/loader:923:27)
    at Module.require (node:internal/modules/cjs/loader:1137:19)
    at require (node:internal/modules/helpers:121:18)
    at Object. (C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js:5:20)
    at Module._compile (node:internal/modules/cjs/loader:1255:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
    at Module.load (node:internal/modules/cjs/loader:1113:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js' ]

    Then if I add the full path:

C:\Users\johnny\OneDrive\Desktop\AC_Offspring>node app.js
Adding product to bag
AggregateError
at internalConnectMultiple (node:net:1102:18)
at afterConnectMultiple (node:net:1620:5) {
code: 'ECONNREFUSED',
response: undefined,
[errors]: [
Error: connect ECONNREFUSED ::1:80
at afterConnectMultiple (node:net:1607:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 80
},
Error: connect ECONNREFUSED 127.0.0.1:80
at afterConnectMultiple (node:net:1607:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 80
}
]
}
Error: Could not pass cookies from API!
at get_cookies (C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js:37:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async addProductToBasket (C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js:148:21)
at async order (C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js:101:3)
Error: Could not add product to the bag!
at addProductToBasket (C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js:159:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async order (C:\Users\johnny\OneDrive\Desktop\AC_Offspring\app.js:101:3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant