0

These are my headers: Headers

This error cropped up out of nowhere. I've been sending POST requests to my application without error for a while now. My Post method reads:

Controller:

 @PostMapping(path = "/generateCredential", consumes="multipart/form-data")
 @ApiOperation(value = "User can register using this Api", response = RegisterForPluginResponse.class)
 public ResponseEntity<Object> generateCredential(@Valid @RequestBody RegisterForPluginRequest registerForPlugin) {
  ...
 }

dto:

 public RegisterForPluginRequest() {
        super();
    }
 public RegisterForPluginRequest(@Email @NotEmpty String clientName, @NotEmpty int packageId, String phone, String email) {
        super();
        this.clientName = clientName;
        this.packageId = packageId;
        this.phone = phone;
        this.email = email;
    }

What could cause a 415 error where previously there was none? I did recently make changes to make changes to my application's SQL table by adding 2 columns, I wonder if this could be the source of my problem?

0 Answers0