#devtools-integration error in version v10

52 messages · Page 1 of 1 (latest)

smoky dome
#

If I put "http :false" everything works ok

#

this is my nest info

serene wigeon
#

Which OS are you on?

smoky dome
#

I have problems at MacOS and Linux

#

ubuntu 22.04

serene wigeon
#

does it happen every time? What if you first kill whatever is running on that port? sudo kill -9 $(sudo lsof -t -i:4000)

smoky dome
#

Yes, i check it

#

every time

serene wigeon
#

I'm pretty sure you have to use a different port for the devtool module and for the app's webserver itself

#

when do

await app.listen(3000);

and

DevtoolsModule.registerAsync({
      useFactory: () => ({
        http: true,
        port: 4000,
      }),
    }),

Then it boots up correctly

smoky dome
#

I will try it now

#

The app works, but I can't connect to devtool

#

I have problems at MacOS and Linux, but Window work

muted isle
#

how your devtoolsmodule setup looks like now?

serene wigeon
#

but I can't connect to devtool
How are you connecting?

smoky dome
#

On windows devtool and app sharing port 4000, it works fine.
But not mac and linux

#

i try 4000, 3000, and replace localhost to 127.0.0.1

muted isle
#

it's working here on Ubuntu

#

can you make a reproduction to share with us?

smoky dome
#

i can share vps ubuntu, i pm u

muted isle
#

oh so it might be networking issues right

serene wigeon
#

working for me as well

smoky dome
#

Network problem? I'm not sure

serene wigeon
#

btw it won't work if you're trying to connect to stackblitz

smoky dome
muted isle
smoky dome
#

i try on local window and deploy to vps

#

My colleague tried it on MacOS and it didn't work

serene wigeon
#

and are you trying to connect to the IP of the VPS?

i try 4000, 3000, and replace localhost to 127.0.0.1
127.0.0.1 is still localhost

serene wigeon
#

if they use port 3000, do they see the "hello world" message?

smoky dome
#

Yes. everything is working properly except devtool

serene wigeon
#

just to confirm - when it's deployed on the VPS, then nobody can connect to the devtool from any machine

smoky dome
#

Yes

#

And MacOs, ubuntu share the same port causing error

serene wigeon
#

the log shows you're running the server on port 4000, not the devtool module

smoky dome
#

I tried 4000 and 5000

serene wigeon
#

that error in the console is still the old one. What does the devtools window say when you try port 5000?

smoky dome
#

Nothing happens

serene wigeon
#

Not even this error?

smoky dome
serene wigeon
#

I was able to connect to the devtool module even when the project runs in a docker container

#

I truly have no idea what could be wrong at your end

smoky dome
#

i share u vps

#

There is a problem with the network
and when using common port for application and devtool on Mac and Ubuntu

muted isle
#

the question is: do we must use different ports? I’d say yes. The docs doesn’t mention that so we should improve it and see what Kamil think