dartis icon indicating copy to clipboard operation
dartis copied to clipboard

fix the program result error caused by the exception of dispatch reply

Open springeye opened this issue 4 years ago • 3 comments

fix the program result error caused by the exception of dispatch reply, when Received data: [36, 50, 55, 13, 10, 72, 89, 76, 76, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 70, 247, 128, 81, 211, 128, 68, 102, 128, 98, 201, 13, 10].

springeye avatar Jun 26 '21 12:06 springeye

Could you provide the Redis command used to get that response?

jcmellado avatar Jun 26 '21 19:06 jcmellado

when Redis get a key, but value is a special character! image So I can only provide the error information of the returned bytes data

It can be tested in dispatcher. Dart if_ dispatch(reply); There is an exception_ The reader will not be set to null, so any subsequent commands will be invalid_ The reader becomes the wrong data

springeye avatar Jun 27 '21 10:06 springeye

The final results are as follows

  1. If redis get key gets a special character, but_ dispatch(reply); There is an exception

  2. There will be an error executing any other command

springeye avatar Jun 27 '21 10:06 springeye