google colab (python) to fetch images from sentinel-hub erroe

Hello , I am using google colab (python) to fetch images from sentinel-hub …it was working fine and all but the next day when I ran the code again I got an error in the get_data() command … UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fb0c3f0c9b0>
Its weird to me that when I restarted the run session as a whole and closed and reopened the note it worked … (not an efficient solution )
So does anyone know what is this issue and how can I solve it ?

1 Like