Access CloudKit containers from Keyboard extension

I am creating a Keyboard extension for my app and I need to do some queries from the extension to CloudKit.

I have added the capability and the app group but I still can't seem to access Cloudkit.

All I get is this error Couldn't get container configuration from the server for container

Any ideas?

Access CloudKit containers from Keyboard extension
 
 
Q