Verify Internet Connection Error

Successfully registered application commands. Bot Started. 2023-06-02T18:17:11.550Z ERROR [hero-core/lib/Tab] BrowserEngine.Tab.crashed { context: { tabId: 1, sessionId: 'fVtw15f7Z9SmoBUjA6Bvj' }, sessionId: 'fVtw15f7Z9SmoBUjA6Bvj', sessionName: 'default-session' } Error: Page crashed - killed by Chrome with code 9 at Page.onTargetKilled (/app/node_modules/core/lib/Page.ts:566:14) at BrowserContext.targetKilled (/app/node_modules/core/lib/BrowserContext.ts:276:20) at Browser.onTargetCrashed (/app/node_modules/core/lib/Browser.ts:349:17)  at DevtoolsSession.emit (node:events:513:28) at DevtoolsSession.emit (/app/node_modules/commons/lib/TypedEventEmitter.ts:136:18) at DevtoolsSession.onMessage (/app/node_modules/core/lib/DevtoolsSession.ts:102:12) at Connection.onMessage (/app/node_modules/core/lib/Connection.ts:83:23)  at processImmediate (node:internal/timers:468:21) 2023-06-02T18:17:11.593Z ERROR [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.HandleRequestError { context: {}, sessionId: 'fVtw15f7Z9SmoBUjA6Bvj', sessionName: 'default-session' } Error: Target for command not available (FrameEnvironment) at new CommandRunner (/app/node_modules/core/lib/CommandRunner.ts:16:13) at ConnectionToHeroClient.executeCommand (/app/node_modules/core/connections/ConnectionToHeroClient.ts:240:27) at ConnectionToHeroClient.handleRequest (/app/node_modules/core/connections/ConnectionToHeroClient.ts:65:25) at runMicrotasks (<anonymous>)  at processTicksAndRejections (node:internal/process/task_queues:96:5) Prizepicks - Unable to fetch, please verify your internet connection. 2023-06-02T18:17:39.646Z ERROR [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.HandleRequestError { sessionId: 'fVtw15f7Z9SmoBUjA6Bvj', sessionName: 'default-session' } Error: Target for command not available (Tab) context: {}, at new CommandRunner (/app/node_modules/core/lib/CommandRunner.ts:16:13) at ConnectionToHeroClient.executeCommand (/app/node_modules/core/connections/ConnectionToHeroClient.ts:240:27) at ConnectionToHeroClient.handleRequest (/app/node_modules/core/connections/ConnectionToHeroClient.ts:65:25) at runMicrotasks (<anonymous>)  at processTicksAndRejections (node:internal/process/task_queues:96:5) Prizepicks - Unable to fetch, please verify your internet connection. 2023-06-02T18:18:10.137Z ERROR [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.HandleRequestError { context: {}, sessionId: 'fVtw15f7Z9SmoBUjA6Bvj', sessionName: 'default-session' } Error: Target for command not available (Tab) at new CommandRunner (/app/node_modules/core/lib/CommandRunner.ts:16:13) at ConnectionToHeroClient.executeCommand (/app/node_modules/core/connections/ConnectionToHeroClient.ts:240:27) at ConnectionToHeroClient.handleRequest (/app/node_modules/core/connections/ConnectionToHeroClient.ts:65:25)  at processTicksAndRejections (node:internal/process/task_queues:96:5) at runMicrotasks (<anonymous>) Prizepicks - Unable to fetch, please verify your internet connection. 2023-06-02T18:18:40.627Z ERROR [hero-core/connections/ConnectionToHeroClient] ConnectionToClient.HandleRequestError { context: {}, sessionId: 'fVtw15f7Z9SmoBUjA6Bvj', sessionName: 'default-session' } Error: Target for command not available (Tab) at new CommandRunner (/app/node_modules/core/lib/CommandRunner.ts:16:13) at ConnectionToHeroClient.executeCommand (/app/node_modules/core/connections/ConnectionToHeroClient.ts:240:27) at ConnectionToHeroClient.handleRequest (/app/node_modules/core/connections/ConnectionToHeroClient.ts:65:25) at runMicrotasks (<anonymous>)  at processTicksAndRejections (node:internal/process/task_queues:96:5)
29 Replies
Percy
Percy2y ago
Project ID: 86d80cd8-7d21-4368-a342-4fc1d8b87270
CSteez903
CSteez903OP2y ago
project id:86d80cd8-7d21-4368-a342-4fc1d8b87270
Brody
Brody2y ago
what are you trying to fetch
CSteez903
CSteez903OP2y ago
updated lines from com prizepicks.com
Brody
Brody2y ago
are you using their api?
CSteez903
CSteez903OP2y ago
yes the deployment crashes
Brody
Brody2y ago
can you show me your package.json?
CSteez903
CSteez903OP2y ago
{ "name": "moneyalertz", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "@discordjs/rest": "^1.3.0", "@ulixee/execute-js-plugin": "^2.0.0-alpha.11", "@ulixee/hero": "^2.0.0-alpha.11", "@ulixee/server": "^2.0.0-alpha.11", "axios": "^0.27.2", "discord.js": "^14.6.0", "error-to-json": "^2.0.0", "firebase": "^9.12.1", "format-duration": "^2.0.0", "google-spreadsheet": "^3.3.0", "pg": "^8.8.0", "sequelize": "^6.25.3", "shelljs": "^0.8.5" } }
Brody
Brody2y ago
is this a public api like with public documentation
CSteez903
CSteez903OP2y ago
No they put it up on github
Brody
Brody2y ago
who's they
CSteez903
CSteez903OP2y ago
prizepicks
Brody
Brody2y ago
link please
CSteez903
CSteez903OP2y ago
They took it down I guesse
CSteez903
CSteez903OP2y ago
GitHub
GitHub - ortizjs/JurassicPPP: PrizePicks API Assessment
PrizePicks API Assessment. Contribute to ortizjs/JurassicPPP development by creating an account on GitHub.
CSteez903
CSteez903OP2y ago
this is not official
Brody
Brody2y ago
sorry you wont be able to use that on railway, that scrapes prizepicks, web scrapping is not allowed on railway as stated by TOS
CSteez903
CSteez903OP2y ago
I am using the api they posted but i guess they removed the repo
Brody
Brody2y ago
from my limited research i can not find an offical public api from prizepicks, but id like to be proven wrong. so as it stands you wont be able to host an app that uses data from prizepicks on railway, sorry for any inconveniences
CSteez903
CSteez903OP2y ago
I've spoken to @Angelo about this lol From what I understand I am good
angelo
angelo2y ago
hes good
Brody
Brody2y ago
oh im sorry about that, i was just going off what the tos says can you give me the api domain so i can run some tests?
Brody
Brody2y ago
okay i will get back to you on this
CSteez903
CSteez903OP2y ago
thank you
Brody
Brody2y ago
prizepicks seems to be blocking requests coming from railway, or at the very least requests not made by a web browser https://utilities.up.railway.app/request-test?url=https://api.prizepicks.com/leagues try to spoof your api calls to look like a request that a web browser would make, otherwise theres not much we can do for you here and you would have to get in contact with prizepicks
CSteez903
CSteez903OP2y ago
Thank you
zerosodium
zerosodium2y ago
highly suggest copying the curl coming from a websites devtools and pasting it in postman to spoof the api calls
Want results from more Discord servers?
Add your server