dydxprotocol / v4-chain

dydx v4 protocol
Other
205 stars 89 forks source link

grpc-web cannot be used #1489

Open COLUD4 opened 2 months ago

COLUD4 commented 2 months ago

Hello! I have deployed a local node and I want to be able to use the grpc-web port. How should I set it up to use it?

app.toml ###############################################################################

gRPC Configuration

###############################################################################

[grpc]

Enable defines if the gRPC server should be enabled.

enable = true

Address defines the gRPC server address to bind to.

address = "0.0.0.0:9090"

MaxRecvMsgSize defines the max message size in bytes the server can receive.

The default value is 10MB.

max-recv-msg-size = "10485760"

MaxSendMsgSize defines the max message size in bytes the server can send.

The default value is math.MaxInt32.

max-send-msg-size = "2147483647"

###############################################################################

gRPC Web Configuration

###############################################################################

[grpc-web]

GRPCWebEnable defines if the gRPC-web should be enabled.

NOTE: gRPC must also be enabled, otherwise, this configuration is a no-op.

NOTE: gRPC-Web uses the same address as the API server.

enable = true

###############################################################################

linear[bot] commented 2 months ago

GH-30 grpc-web cannot be used