diff --git a/src/test/java/serpapi/example/GoogleReverseImageTest.java b/src/test/java/serpapi/example/GoogleReverseImageTest.java index 33f9edb..c38d1ea 100644 --- a/src/test/java/serpapi/example/GoogleReverseImageTest.java +++ b/src/test/java/serpapi/example/GoogleReverseImageTest.java @@ -3,6 +3,7 @@ import com.google.gson.JsonObject; import com.google.gson.JsonPrimitive; +import org.junit.Ignore; import org.junit.Test; import java.util.HashMap; @@ -15,6 +16,17 @@ */ public class GoogleReverseImageTest { + // Quarantined: the google_reverse_image engine returns no results at all. The + // API responds HTTP 200 with search_metadata.status "Success", but the body + // carries only search_information and: + // + // "error": "Google Reverse Image hasn't returned any results for this query." + // + // Reproduced on 2026-11-05 with three unrelated images (this imgur photo, a + // Wikimedia Eiffel Tower photo, the serpapi.com logo), all of which download + // fine, so this is the engine, not the image or this client. It also fails in + // master CI. Re-enable once the engine returns image_sizes again. + @Ignore("google_reverse_image engine returns no results for any image; not a client bug") @Test public void search() throws SerpApiException { // skip test if no api_key provided @@ -32,6 +44,7 @@ public void search() throws SerpApiException { parameter.put("image_url", "https://i.imgur.com/5bGzZi7.jpg"); JsonObject results = client.search(parameter); assertNotNull(results); + assertNotNull("image_sizes missing, keys: " + results.keySet(), results.get("image_sizes")); } } \ No newline at end of file