ottomated / turtle-gambit

[OLD] code to connect to minecraft turtles
234 stars 64 forks source link

Error with trying to launch the the code #9

Open ItayKisous opened 3 years ago

ItayKisous commented 3 years ago

after doing yarn dev I get the following error:

yarn run v1.22.10 $ tsc && node lib/index.js (node:17348) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/ at navigate (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async FrameManager.navigateFrame (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17) at async Frame.goto (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12) at async Page.goto (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12) at async Window.load (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\lib\carlo.js:347:5) -- ASYNC -- at Frame. (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27) at Page.goto (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49) at Page. (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23) at Window.load (C:\Users\Itay\Desktop\Programing\turtle-gambit-master\node_modules\carlo\lib\carlo.js:347:22) at processTicksAndRejections (internal/process/task_queues.js:93:5) (Use node --trace-warnings ... to show where the warning was created) (node:17348) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:17348) [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.

Myoozik commented 3 years ago

You also need to run yarn dev in ./turtle-gambit-master/frontend before running yarn dev in ./turtle-gambit-master/

ItayKisous commented 3 years ago

You also need to run yarn dev in ./turtle-gambit-master/frontend before running yarn dev in ./turtle-gambit-master/

Sorry for bugging you, but I'm just a newbie at all of this :)

Now that's what I get

yarn run v1.22.10 $ tsc && node lib/index.js (node:13956) UnhandledPromiseRejectionWarning: Error: Protocol error (Browser.grantPermissions): Unknown permission type: clipboardRead at C:\Users\Itay\Desktop\Programing\ComputerCraft Lua\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Connection.js:74:56 at new Promise () at Connection.send (C:\Users\Itay\Desktop\Programing\ComputerCraft Lua\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Connection.js:73:12) at BrowserContext.overridePermissions (C:\Users\Itay\Desktop\Programing\ComputerCraft Lua\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Browser.js:349:28) at BrowserContext. (C:\Users\Itay\Desktop\Programing\ComputerCraft Lua\turtle-gambit\node_modules\carlo\nodemodules\puppeteer-core\lib\helper.js:109:23) at App.init (C:\Users\Itay\Desktop\Programing\ComputerCraft Lua\turtle-gambit\node_modules\carlo\lib\carlo.js:62:11) at Object.launch (C:\Users\Itay\Desktop\Programing\ComputerCraft Lua\turtle-gambit\node_modules\carlo\lib\carlo.js:627:15) at processTicksAndRejections (internal/process/task_queues.js:93:5) (Use node --trace-warnings ... to show where the warning was created) (node:13956) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:13956) [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.

FaePhoenix commented 3 years ago

Got the same Error, but ngrok also got an Error the moment i ran yarn dev in ./turtle-gambit/ Bild_2021-03-18_021411 Would appreciate any help

FaePhoenix commented 3 years ago

After restarting everything I got the same two error-messages in ngrok and from yarn, but I get a empty pop-up window with a weird title now Bild_2021-03-18_021650

FaePhoenix commented 3 years ago

After reinstalling the whole project (including the repo) it just worked... Dont know why