Problems conecting to Rocket.Chat at http://localhost:3000/

Hey!
I was trying to deploy RC app on my WSL RC Server but it gives this error:
**Error: ⟿ Problems conecting to Rocket.Chat at http://localhost:3000/ - please check the address**
on rc-apps deploy --url http://localhost:3000/ -u test -p test

but localhost:3000 is working fine in browser. also
on curl -I localhost:3000 it is giving HTTP/1.1 200 OK

i used this to setup server on WSL : https://developer.rocket.chat/docs/windows-10
and this to create hello-world app: https://developer.rocket.chat/docs/create-an-app

I suspect that you cannot load a private app because you haven’t registered properly.

(I can’t remember if there is a ‘developer’ switch to permit it somehow. I will try and ask)

Please check the server status in your cloud account. I think you need to be on Starter or higher.

i have checked that already local server is running in development mode of RC

Please describe what you mean please.

in localhost, there is development written in RC logo on top also i was not able to such option to turn of development mode

Please go back and list all the steps you have taken please.

Hard to know what you have done or missed.

  1. used this guide to setup server on wsl : https://developer.rocket.chat/v1/docs/windows-10
  2. visited http://localhost:3000/: saw this also didn’t got any option to turn on developer mode but in web browser its working fine.

  1. used this guide to deploy basic hello world app: https://developer.rocket.chat/docs/create-an-app
  2. got this error:
    Error: ⟿ Problems conecting to Rocket.Chat at http://localhost:3000/ - please check the address

No, not the guides you followed and things you think you did, but the actual commands you used.

Go right back to the start.

Read both of these on how to ask smart, well documented questions.

So far all we know is you have followed some guides and it doesn’t work.

Needs more info and better documented.

i used exactly everything as per guide.

But it doesn’t work.

So either the docs are wrong, or you have done something wrong.

Currently without more detailed information we can’t tell which.

I strongly suspect you have missed something, but can’t tell what.

:man_shrugging:

(Please do not open a bug in the hope this will get solved as there is no evidence of a bug)

Note I am now on vacation for a week so can’t do much more.

I suggest you go back, start again and write down exactly what you do. Use pastebin etc for long logs.

Without that no one is going to help you.

  1. installed Ubuntu WSL on Windows 11.
  2. Install Rocket Chat on Ubuntu WSL: To Install Rocket Chat on Ubuntu WSL - Pastebin.com
  3. Create Hello world app: To Create Rocket Chat App - Pastebin.com

Thats exactly what i did. I don’t know why its showing problem to connect with localhost, even when its working perfectly in browser.

Ok. That’s easier to see and understand!!

Ok. Checking the obvious.

Did you use an existing user and password? Eg did you create user “test” with password “test”?

Did you disable all 2FA so user “test” can login?

Did you cd to the hello-world directory before executing deploy?

You might want to look at some other rc apps in github from GSoC to see how they do this - there are several.

Let me know. If it still fails I’ll try to grt a dev to look but I’m on vacation for a week and many of the devs will be away over Christmas so it may not be until January.

Just asked a dev. They said:

Probably because of the trailing / http://localhost:3000 (notice it should end on the “0” and not “/”) I know it sounds stupid but we had instances where this error happened.

If above doesn’t works, for further debugging,
Outputs (from the same WSL terminal, that the contributor ran rc-apps deploy) for:

  1. rc-apps --version
  2. curl -l http://localhost:3000/api/info

no, even without / , its giving same error

  1. curl -l http://localhost:3000/api/info:
{
  "version": "7.2",
  "minimumClientVersions": {
    "desktop": "3.9.6",
    "mobile": "4.39.0"
  },
  "supportedVersions": {
    "signed": "eyxxxxxxxxxxsome_long_string"
  },
  "cloudWorkspaceId": "67xxxxxxxxxxxx",
  "success": true
}
  1. rc-apps --version:
    @rocket.chat/apps-cli/1.12.0 win32-x64 node-v22.12.0

Slmeone will take a look but remember many are away for vacations so you need to be patient.

is there any update?

See my last reply.

It might be several days. Sorry.

So a dev said:

I tried to recreate the issue but I am not able to get the same error. There is only one hint:
There is a possibility that the rc-apps package was installed globally on the windows given the win32-x64 on the rc-apps --version output.

which rc-apps
  • If the path starts with something like /usr/bin/ or /home/<your-user>/.npm, it means the rc-apps CLI is installed within the WSL environment.
  • If the path starts with /mnt/c/ (or similar), it indicates the package is installed on the Windows filesystem and being accessed from WSL.

If that’s the case uninstall the package, get the node on the WSL cd ~ dir. And reinstall the rc-apps

And if nothing works, can try to manually upload the App:

rc-apps package

The above will store the package under the dist dir as a zip.
Then head over to http://localhost:3000/marketplace/private/install > Install from File

well i am using docker now
but i tried these:

in windows:

rc-apps --version
@rocket.chat/apps-cli/1.12.0 win32-x64 node-v22.12.0

in WSL:

which rc-apps
/mnt/c/Users/user/AppData/Roaming/npm/rc-apps

Stop.

You are just confusing things and making a bigger mess. https://xyproblem.info

One step at a time.

You are NOT reading what the dev said.

Your answer:

In which case: