Pyroscope + Alloy: Failed to append profile

Hi,
I’m running Pyroscope in AWS EKS and using Alloy to recollect the profiles from the applications using pyroscope.receive_http. However, I’m having the following error:

{
  "ts": "2024-12-13T20:20:45.044154023Z",
  "level": "error",
  "msg": "Failed to append profile",
  "component_path": "/",
  "component_id": "pyroscope.receive_http.pyroscope_receive",
  "appendable": 0,
  "err": "pyroscope write error: status 405"
}

Does someone know how to solve it?