drizzle-team / drizzle-team/drizzle-orm
Drizzle studio cli host param does not work when using remote dev (github codespaces)
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
The cli has params for host and port, which also append those as url params to the web ui. If i leave them out on the cli and just add them to the url, I am able to use it in github codespaces.
`https://local.drizzle.studio/?host=yourcodespacename-4983.app.github.dev&port=443` If i use these same values as params for the cli I get this error:
```
node:events:496
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND ieatbeans.com
at __node_internal_captureLargerStackTrace (node:internal/errors:563:5)
at __node_internal_ (node:internal/errors:782:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Emitted 'error' event on Server instance at:
at GetAddrInfoReqWrap.doListen [as callback] (node:net:2072:12)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:17)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3007,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'REDACTED BY ME'
}
```
Im not able to understand what this error means, but im guessing its checking if the address resolves and it doesn't because the api hasn't started yet.
Not a huge deal because I can just add the url params and its fine, but would be nice if I could have it auto populate those to make it less confusing for developers who will want to just click the link in the terminal.
Contributor guide
Assessment
This issue has not been assessed yet.