So, I just tested this multiple times with keys from openai's platform. It seems that it trims one part of the end of the key and thus throws an incorrect key error.
There is no point to paste any logs, if you try it you will be able to reproduce it.