Getting `failed to retrieve port` warning for listeners with `check`
TharmiganK opened this issue · comments
Description:
$Subject
Steps to reproduce:
Build the ballerina project with the following file and cloud option:
import ballerina/http;
listener http:Listener serverEP = check new(9090);
service on serverEP {}
WARNING [sample] failed to retrieve port
Affected Versions:
Ballerina SwanLake 2201.5.0
OS, DB, other environment details and versions:
Mas OS (ARM64)
This warning is printed for constant ports as well. See the below sample:
import ballerina/http;
const int PORT = 9090;
listener http:Listener serverEP = new(PORT);
service on serverEP {}