Skip to content

Commit 6374354

Browse files
authored
Fix: Connection did not succeed. Error message: Connection request encountered an exception (#168)
* Fixing how connection service decodes connection complete events. * Removing info log used during debugging.
1 parent ccf39da commit 6374354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mssqlcli/jsonrpc/contracts/connectionservice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def decode_response(self, obj):
7070
if u'result' in obj:
7171
return ConnectionResponse(obj)
7272

73-
elif u'params' in obj:
73+
elif 'method' in obj and obj['method'] == 'connection/complete':
7474
return ConnectionCompleteEvent(obj)
7575

7676
# Could not decode return st

0 commit comments

Comments
 (0)