ytitov / grpc-rust-dart-demo

routeguide tutorial base to start a rust and dart server/client project
0 stars 0 forks source link

Server Responses Parsin #26

Open Relentlesslba opened 4 years ago

Relentlesslba commented 4 years ago

Parsing server responses, in particular: AuthResponse

When authorization fails, AuthResponse.authorized is false but doesn't print anything. Is this Dart behavior?

Try: dart bin/manageusers-cli.dart add-user -u firstuser dart bin/manageusers-cli.dart set-pwd -u firstuser -p pwd

Then, dart bin/manageusers-cli.dart auth-user -u firstuser -p pwd will show: user authorized? authorized: true sessionid: 69

But, dart bin/manageusers-cli.dart auth-user -u firstuser -p oops shows: user authorized? sessionid: fail

Notice the authorized field is missing. "fail" is just a temporary string for now.

ytitov commented 4 years ago

@Relentlesslba lets do a call the next time you're available about this