Skip to content

Latest commit

 

History

History

hello-grpc-dart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

build

# https://dart.dev/get-dart/archive
dart pub get

run the server

dart server.dart

run the client

dart client.dart
dart compile exe server.dart -o bin/hello_server
./bin/hello_server

dart compile exe client.dart -o bin/hello_client
./bin/hello_client

Debugging Troubleshoot

Problem:

dart --enable-asserts --pause_isolates_on_start --enable-vm-service:50714 client.dart

vm-service: Error: Unhandled exception:
WebSocketException: Invalid WebSocket upgrade request

Solution:

export NO_PROXY=localhost,127.0.0.1


The Dart DevTools debugger and profiler is available at: http://127.0.0.1:52426/6IXUiMzaUlk=/devtools?uri=ws://127.0.0.1:52426/6IXUiMzaUlk=/ws