Skip to content

Problem with uploading from file #9

@Magrgo

Description

@Magrgo

Error message I get with some pictures:
Traceback (most recent call last):
File "C:\Users\MGergo\Desktop\Új mappa\img.py", line 5, in
res = rev_img_searcher.search_by_file('YTES.jpeg')
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\reverse_image_searcher.py", line 65, in search_by_file
return self.__search(self.image_file_uploader, image_path)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\reverse_image_searcher.py", line 49, in __search
return self.image_source_searcher.search(google_image)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\image_source_searcher.py", line 39, in search
return self.extract_search_items(src_response.text)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\image_source_searcher.py", line 17, in extract_search_items
decoded_response = decode(src_response, 'c')
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\batchexecute_decoder.py", line 223, in decode
decoded = _decode_rt_compressed(raw, strict=strict)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\batchexecute_decoder.py", line 95, in decode_rt_compressed
data = json.loads(envelope[0][2])
File "C:\Users\MGergo\AppData\Local\Programs\Python\Python39\lib\json_init
.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType

I only get it with some pictures, and when I uploaded these pictures manually, they brought normal results, so its not with those pics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions