ValueError when using Roc_Auc as metric

I have a well working classifier and wanted to try the roc_auc score as a metric. Weirdly it seems that this breaks the Code. Does anyone know why?