Not sure why, but I switched my setup to have a restApi in stead of httpApi and now it works. I would still like to know the reason but at least I am not stuck anymore