Error "Cannot retrieve OAuth Client credentials" on Webservice with other port than 443

I’m also having the same problem.
maybe req.get(‹ host ›) not contained port number, always failed.
I commented out next line, and this problem fixed.

dist/server/controllers/api/oauth-clients.js
line 19-21

    const serverHostname = config_1.CONFIG.WEBSERVER.HOSTNAME;
    const serverPort = config_1.CONFIG.WEBSERVER.PORT;
    let headerHostShouldBe = serverHostname;
    //if (serverPort !== 80 && serverPort !== 443) {
    //    headerHostShouldBe += ':' + serverPort;
    //}
    if (!(0, core_utils_1.isTestOrDevInstance)() && req.get('host') !== headerHostShouldBe) {

found related thread. (Additionally, fixed uploading error)