Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting failed to retrieve port warning for listeners with check #671

Open
TharmiganK opened this issue Apr 17, 2023 · 1 comment
Open
Labels

Comments

@TharmiganK
Copy link
Contributor

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)

@TharmiganK
Copy link
Contributor Author

TharmiganK commented Apr 17, 2023

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 {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant