Skip to content

mediaing get-media str vs bytes issue #157

@danstoner

Description

@danstoner
2021-04-10 12:10:56.736 ERROR idb.mediaing჻ Unhandled error processing: https://herbarium.nkn.uidaho.edu/images/jpeg.php?Image=ID003067.jpg
Traceback (most recent call last):
  File "/home/dan/git/IDIGBIO/idb-backend/idigbio_ingestion/mediaing/fetcher.py", line 273, in get_media
    self.validate()
  File "/home/dan/git/IDIGBIO/idb-backend/idigbio_ingestion/mediaing/fetcher.py", line 335, in validate
    url=self.url, type=self.type, mime=self.mime)
  File "/home/dan/git/IDIGBIO/idb-backend/idb/postgres_backend/db.py", line 687, in frombuff
    return cls.fromobj(StringIO(buff), **attrs)
TypeError: initial_value must be str or None, not bytes

Metadata

Metadata

Assignees

Labels

python3for issues specific to python3 conversion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions