Could not get response. (Internal Server Error)


when i try to get response

public void post01(){
//set the url
String url = "";

//set the expected data
BookingDatesPojo bookingDatesPojo=new BookingDatesPojo("2018-01-01","2019-01-01");
BookingPojo expectedData = new BookingPojo("Jim","Brown",111,true,bookingDatesPojo, "Breakfast");
System.out.println("expectedData = " + expectedData);

//Send the request and get the response
Response response = given().contentType(ContentType.JSON).body(expectedData).when().post(url);

Why am I get "Internal Server Error" 


java version "" 2022-04-22 LTS
Java(TM) SE Runtime Environment 18.9 (build
Java HotSpot(TM) 64-Bit Server VM 18.9 (build, mixed mode)

1 comment
It may be a proxy server problem. Try changing the HTTP proxy settings in the IDE:

Please sign in to leave a comment.