memos/server/router/api
ChaoLiu 7db3e02fe7 fix: resolve gRPC Gateway connection issue when server address is empty
When Profile.Addr is empty (default configuration), gRPC Gateway
attempts to connect to ":port" which fails on macOS with transport
errors. This fix defaults to "localhost" when no address is specified,
ensuring cross-platform compatibility.

- Fix gRPC connection format from ":port" to "localhost:port"
- Resolves API endpoint failures in development environment
- Maintains compatibility with explicit address configurations

Fixes connection error: "transport: Error while dialing: reading
server HTTP response: unexpected EOF"

Signed-off-by: ChaoLiu <chaoliu719@gmail.com>
2025-08-05 13:35:04 +08:00
..
v1 fix: resolve gRPC Gateway connection issue when server address is empty 2025-08-05 13:35:04 +08:00