Skip to content

Instantly share code, notes, and snippets.

@anarchivist
Created March 18, 2021 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarchivist/455dffd1402fdbb1643b31d085e63d88 to your computer and use it in GitHub Desktop.
Save anarchivist/455dffd1402fdbb1643b31d085e63d88 to your computer and use it in GitHub Desktop.
resync-sync error on pod
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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment