I'm trying to throw together a getting started gui...
# extensions
w
I'm trying to throw together a getting started guide, so I've started from scratch with a local RD install, Rancher install, and the extension package. I've defined launched Rancher from helm with hostname
rancher.localhost
, which works great for local. But I'm having trouble with the proxy request that's happening inside of the extension dev process. I'd expect that
API=rancher.localhost/v3 yarn dev
should work as a run command, but I'm receiving an error. I'm assuming there is a network issue, but I've also tried using combinations of host.docker.localhost and 0.0.0.0, including localhost with a port forward from Rancher, but no luck. Am I missing anything obvious?
Copy code
yarn run v1.22.19
warning package.json: No license field
$ ./node_modules/.bin/nuxt dev
Build: Development                                                                                      18:13:27
API: '<https://rancher.localhost/v3>'. Env: 'web'                                                         18:13:27

   ╭────────────────────────────────────────────╮
   │                                            │
   │   Nuxt @ v2.15.8                           │
   │                                            │
   │   ▸ Environment: development               │
   │   ▸ Rendering:   client-side               │
   │   ▸ Target:      server                    │
   │                                            │
   │   Listening: <https://172.24.89.129:8005/>   │
   │                                            │
   ╰────────────────────────────────────────────╯

ℹ Preparing project for development                                                                     18:13:28
ℹ Initial build may take a while                                                                        18:13:28
✔ Builder initialized                                                                                   18:13:28
✔ Nuxt files generated                                                                                  18:13:28
ℹ Warming up worker pools                                                                               18:13:29
✔ Worker pools ready                                                                                    18:13:30

✔ Client
  Compiled successfully in 10.20s

ℹ Waiting for file changes                                                                              18:13:48
ℹ Memory usage: 1.45 GB (RSS: 1.99 GB)                                                                  18:13:48
ℹ Listening on: <https://172.24.89.129:8005/>                                                             18:13:48
No issues found.                                                                                        18:13:48

 ERROR  Proxy Error: getaddrinfo ENOTFOUND rancher.localhost                                            18:14:05

  at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26)


 ERROR  [HPM] Error occurred while trying to proxy request /api/v1/namespaces/cattle-ui-plugin-system/services/<http:ui-plugin-operator:80/proxy/index.json> from localhost:8005 to <https://rancher.localhost/v3> (ENOTFOUND) (<https://nodejs.org/api/errors.html#errors_common_system_errors>)