thanks to @Darren_Murphy I realized that stripe caused the problem by returning a multiline string. I just needed a substring, but this thread offers other solutions too:
edit: @ThinhDinh : The http request module returned “Status code: 200” (=success), which made it hard to debug.