Skip to content

Instantly share code, notes, and snippets.

@anarchivist
Created March 18, 2021 17:16
Show Gist options
  • Select an option

  • Save anarchivist/455dffd1402fdbb1643b31d085e63d88 to your computer and use it in GitHub Desktop.

Select an option

Save anarchivist/455dffd1402fdbb1643b31d085e63d88 to your computer and use it in GitHub Desktop.

Revisions

  1. anarchivist created this gist Mar 18, 2021.
    22 changes: 22 additions & 0 deletions resync-sync.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    li-dl-7346-0256:tmp matienzo$ resync-sync -v --capability-list https://pod.stanford.edu/.well-known/resourcesync/normalized-capabilitylist/marcxml --access-token "eyJhbGciOiJIUzI1NiJ9.foobar" -b https://pod.stanford.edu/ pod
    Reading capability list https://pod.stanford.edu/.well-known/resourcesync/normalized-capabilitylist/marcxml
    Reading resource list https://pod.stanford.edu/organizations/normalized_resourcelist/marcxml
    Traceback (most recent call last):
    File "/usr/local/lib/python3.9/site-packages/resync/client.py", line 101, in read_resource_list
    resource_list.read(uri=uri)
    File "/usr/local/lib/python3.9/site-packages/resync/list_base_with_index.py", line 99, in read
    self.content_length = int(fh.info()['Content-Length'])
    TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "/usr/local/bin/resync-sync", line 163, in <module>
    main()
    File "/usr/local/bin/resync-sync", line 146, in main
    c.baseline_or_audit(allow_deletion=args.delete,
    File "/usr/local/lib/python3.9/site-packages/resync/client.py", line 262, in baseline_or_audit
    src_resource_list = self.find_resource_list()
    File "/usr/local/lib/python3.9/site-packages/resync/client.py", line 176, in find_resource_list
    return(self.read_resource_list(rluri))
    File "/usr/local/lib/python3.9/site-packages/resync/client.py", line 103, in read_resource_list
    raise ClientError("Can't read source resource list from %s (%s)" %
    resync.client_utils.ClientError: Can't read source resource list from https://pod.stanford.edu/organizations/normalized_resourcelist/marcxml (int() argument must be a string, a bytes-like object or a number, not 'NoneType')