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
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.
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:
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