CouncilDataProject / cdp-backend

Data storage utilities and processing pipelines used by CDP instances.
https://councildataproject.org/cdp-backend
Mozilla Public License 2.0
22 stars 26 forks source link

Some image files store in firebase storage don't have the correct content #192

Open tohuynh opened 2 years ago

tohuynh commented 2 years ago

Describe the Bug

A clear and concise description of the bug. Some images (such as person pictures or seat pictures) stored in firebase storage don't have the same content as their sources.

My guess is that cdp-backend tries to download the image content from one of the URIs in the JSON file and when it fails the failed content was uploaded to firebase storage instead of the image content.

I think the solution here is to make sure the step to download the image is successful?

Expected Behavior

What did you expect to happen instead? Image content stored in firebase storage should be the same as the original images.

Reproduction

Steps to reproduce the behavior and/or a minimal example that exhibits the behavior. image

This is the actual content of the above firebase storage URI (it doesn't look like it could be an image file): image

Environment

Any additional information about your environment.

cc @JacksonMaxfield @dphoria