The key system for messagingservice api is broken

Issue:
When using the messaging service api, it will always return Invalid api key no matter what, yet the api key is valid. Take a look at this topic:

As you see, the api key system is broken, I was frustrating on this issue and I realized it was just a bug.

Before you say “code issue” I also tried it via postman and it returned the same error message.

Cheers.