412 error when attempting shared provenance

Description

Following the provenance article, specifically the part on creating a shared activity / provenance, both and I received the following error when setting shared provenance using the example python script: “synapseclient.exceptions.SynapseHTTPError: 412 Client Error: Node: 10172943 was updated since you last fetched it, retrieve it again and reapply the update”. We did find a workaround by refetching the activity each time a new store (or setProvenance) occurs. Attached is a script that will set the provenance with that technique. I’m filing this as a bug because provenance cannot be updated on a group of files as the article is written.

Environment

Mac OS 10.14.6

Python 3.7 virtual environment containing:

1 2 3 4 5 6 7 8 9 10 11 12 13 backports.csv==1.0.7 certifi==2019.9.11 chardet==3.0.4 Deprecated==1.2.4 entrypoints==0.3 future==0.17.1 idna==2.8 keyring==12.0.2 requests==2.22.0 six==1.12.0 synapseclient==1.9.3 urllib3==1.25.6 wrapt==1.11.2

 

Status

Assignee

Ryan Luce

Reporter

Tess Thyer

Labels

Validator

None

Release Version History

None

Components

Affects versions

py-1.9.3

Priority

Major
Configure