jayeshchoudhary opened a new pull request, #11602:
URL: https://github.com/apache/pinot/pull/11602

   `ui` `bugfix`
   
   ## Issue
   - The issue is that UI is passing wrong data in the request header
   ```
   Content-Type: text/plain;charset=UTF-8
   ``` 
   Whereas Backend API expects application/json 
   ```
   @POST
     @Produces(MediaType.APPLICATION_JSON)
     @Consumes(MediaType.APPLICATION_JSON)
     @Path("/schemas/validate")
   ```
   
   
![image](https://github.com/apache/pinot/assets/41536903/378b4b11-66c9-4bc8-895c-75feb923ccc7)
   
   ## Solution
   - The issue occurred because UI is sending a stringify version of the 
request object, so contentType: text gets auto-added. Sending the data as json 
object solves the issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to