Are you going by the method names displayed on OpenPeripheral's documentation site? If you're using a more current version of OpenPeripheral on the server, those method names are currently incorrect, and will return nil if you try and use them.
Inventories (chests, etc) use these methods...