There are two problems in this line:

1. req.result would be undefined in onerror(). You should use req.error.name to get the error message.
2. 'GetServiceChannelError' is incorrect. It should be 'DeviceChannelRetrievalError'. Sorry, my bad. :S