It even works in the preview. If I hardcode the code to an unused one. But fails always on the published site.