I'm trying to read a Table data in MYSQL DB using Mulesoft SELECT connector, but it's failing with the following error below
java.lang.RuntimeException: Attempted to send invalid data through http response.
Here is my Simple SQL Query to read table dataSELECT * FROM mydata;
My SQL connector configuration has JDBC Driver installed, the connection also has necessary configs added like db endpoint, username and password along with port, database name
what could be the issue? because the same query is working from my local terminal.
- How are you transforming the data after select connector?Karamchand– Karamchand2025-05-29 16:24:12 +00:00CommentedMay 29 at 16:24
- I'm not transforming the data after select connector, I'm just returning it as it isuser13846745– user138467452025-05-29 16:27:09 +00:00CommentedMay 29 at 16:27
- When you ask a question it would be helpful to understand the issue to provide aminimal reproducible example.aled– aled2025-05-29 18:30:45 +00:00CommentedMay 29 at 18:30
1 Answer1
It may be due to incorrect transformation of result that comes from select connector. Add a transform message logic after select connector.
Here is an example:
%dw 2.0output application/json---payload