The issue was with the schema registry URL for me, when i changed it to http://myserver.com:8081 it worked fine and like mentioned by OneCricketeer above, i changed the key to string to get the key value as well.