dessant / search-by-image

Browser extension for reverse image search, available for Chrome, Edge and Safari
https://apps.apple.com/us/app/search-by-image-for-safari/id1544552106
GNU General Public License v3.0
2.28k stars 200 forks source link

Google Lens returning "Something went wrong. Searching on Google Lens has failed." #273

Closed spiderkitten closed 1 year ago

spiderkitten commented 1 year ago

System

Bug description I right click on an image and select "Search by Image" in the context menu
I choose either "All Search Engines" or "Google Lens"
The search opens in a new tab. All the sites work, except Google Lens. Google Lens returns a "Something went wrong. Searching on Google Lens has failed." message.

Note: Google Lens works fine when I don't use the extension, if I just search the image manually.

Logs

TypeError: Cannot read properties of null (reading '1') 
Uncaught (in promise) TypeError: Cannot read properties of null (reading '1')
    at n.session (script.js:2:31453)
    at async Proxy.search (script.js:2:31054)
    at async Proxy.setup (script.js:2:28721)
Whoami42 commented 1 year ago

Can confirm, I can't use Google Lens with this for this reason, but without the extension Google Lens standalone still works.

haha0803 commented 1 year ago

出了些问题。在 Google Lens 上搜索失败。

mzso commented 1 year ago

Indeed. Was so annoyed. I wanted to quickly translate some text but it wouldn't work.

ghost commented 1 year ago

Win10, Chrome 117 Can confirm, I can't use Google Lens with this for this reason, but without the extension Google Lens standalone still works.

dessant commented 1 year ago

Hi everyone! Google has updated the Google Lens service, and there seems to be a new session token check on the server side, so the old method of uploading images will no longer work.

I have a local development version that works on desktop and mobile browsers, and it will be released this week. iOS and iPadOS users will need to update to Safari 16.4 or newer for Google Lens to continue working.

ghost commented 1 year ago

I'm running Firefox 118.0.1 on Fedora Linux Silverblue 118 and I'm encountering the same issue. I was just about to report this but it was already reported. I'm glad there is a fix coming soon.

dessant commented 1 year ago

Version 5.8.0 includes the fix for Google Lens, and it is being uploaded to extension stores. You should receive the update in the next few days.

AlbertoP64 commented 1 year ago

Can't update to 5.8.0 on Windows 8.1, so Google Lens problem keep going. Is it expected (just because old win OS)?

dessant commented 1 year ago

Can't update to 5.8.0 on Windows 8.1, so Google Lens problem keep going. Is it expected (just because old win OS)?

Chrome is no longer supported on Windows 8.1, if that's your browser. Firefox 115 ESR still supports Windows 8.1 until September 2024, but you should just update to Windows 10 instead.

AlbertoP64 commented 1 year ago

Thanks @dessant, nope, my browser is Opera desktop (chrome clone) but also outdated version because of Os, should jump Os to 10 but have some hardware change to do and driver to provide. Simply, until then, I add to the increasingly long collection of sw pieces no more working on my sys. Seems that, OS dismissing is getting much more crudely mandatory than in the past. If I wait enough, but not too long, just two years, it seems that also Win 10 will soon become obsolete (14 oct 2025), and so all my hardware :-( . I should evaluate other ways. I will not think to add also FFX ESR to my bunch, anyway. For your extension, I will simply disable Google Lens in the UI and use copy / paste image on Google search -> Image.