Template for escalating valid bugs to the Engineering Team with proper context and reproduction steps.
High - Affects Production Data
Status: Open
Priority: High (Affects Production Data)
Date: 2026-01-02
Reported By: Roki Miftah Kamaludin - CSE
Title: Google Shopping API returns 500 Internal Server Error when searching for specific EAN-13 codes.
Description:
A customer reported that searching for a specific product by its EAN code causes the API to crash with a 500 error instead of returning a 404 or empty result set. This happens consistently on the Shopping Graph engine.
google_shoppingq, gl, hlusr_12345 (Mock ID)65a1b2c3d4e5f6g7h8I have verified this using the provided script in /cases/03-error-handling/reproduce_bug.js
Make a GET request to SerpApi with the following parameters:
Observe the HTTP Response Status Code.
Expected Behavior:
API should return 200 OK with an empty shopping_results array, OR a 404 Not Found.
Actual Behavior:
API returns 500 Internal Server Error.
Response body received:
Moderate - The customer's application crashes because they do not handle 500 errors gracefully.
Advised customer to wrap the request in a try-catch block and treat 500 errors as "No Results" temporarily.
It seems the parser fails when Google returns a specific "No results found" HTML layout for EAN searches.
Potential Root Cause:
Recommended Action: Update the empty state detection logic to gracefully handle EAN-13 format queries that return no results.
Good bug reports are reproducible, detailed, and include customer impact analysis.