For a while I’ve been running a script based on
pyocclient that manipulates data in the app data store to keep track of what it’s doing. Since upgrading to Nextcloud 13.0.0, it’s suddenly started failing. I’ve reduced it down to this single example Python script. You need to do
pip install pyocclient to be able to run it (or however you want to install dependencies). Put in the appropriate credentials and execute it to test.
#!/usr/bin/env python3 import owncloud DOMAIN = "https://nextcloud.../" USER = "" PASSWORD = "" APP_NAME = 'some-test-app' oc = owncloud.Client(DOMAIN) oc.login(USER, PASSWORD) attrs = oc.get_attribute(APP_NAME) from pprint import pprint pprint(attrs)
With a Nextcloud server <= 12, this script runs fine — even if you have no data stored for
APP_NAME, you’ll just get an empty list back. Just to be clear,
APP_NAME is made up, it doesn’t have to correspond to any installed app to work.
Under 13, the script throws an exception ending in:
owncloud.owncloud.OCSResponseError: OCS error: 998
What’s changed that might cause this? I realise that this is an Owncloud library, not a Nextcloud library, but since Nextcloud doesn’t publish a Python library, this is all I’ve got to work with.