[Bug]: Simple POST request from a cURL client fails with NPE for a Ballerina service ran using lang master #42027
Labels
Area/Scheduler
jBallerina runtime scheduler related issues
Priority/High
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
Milestone
Description
When we invoke a Ballerina service which runs with lang master, then the a simple POST request fails with the following error:
Note: This is not happening if we invoke the service by adding a Ballerina test in the same package. This might be the reason for not identifying this issue in the full build pipeline PR check
Steps to Reproduce
Service code used to reproduce this issue:
Steps to reproduce this issue:
I have used the following timestamped version of lang -
2201.9.0-20240120-003700-f65e7994
. This is also reproducible when we build the lang master and use it in the http moduleClone the ballerina-http repository and update the lang version in the
gradle.properties
fileRun
./gradlew clean build -x test -x check
. This will create a temporary distribution in thetarget
path in the repo root.Use the
bal
command in thattarget
directory to run the above Ballerina serviceMake a cURL request:
curl -v "http://localhost:9090/albums" -d '{"title": "test", "artist": "test"}' -H "content-type: application/json"
Affected Version(s)
Ballerina SwanLake Update 9
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: