From the log output I would assume that the actual API call looks like this http://localhost:8080/api/products/NaN. NaN is returned by parseInt(), if the inpu is not a valid number. So I would start by debugging there. Is the id in the effect properly initialized?