Fixed wrong post-call to request library and error in cli list-devices command

Fixed issue #1