One Star

[resolved] REST service error : Rest response already sent

Hello everyone,
I am creating a REST service that inserts data into a MySQL database and my job looks like that :
 
My problem is when i send data via REST, I've the error : *
Exception in component tRESTResponse_1
java.lang.RuntimeException: Rest response already sent
I've searched a solution on the Internet but I've found nothing. Any help would be welcome. thanks 
4 REPLIES
Community Manager

Re: [resolved] REST service error : Rest response already sent

Hi
It is trying to send multiple responses via tRestResponse, take a look at a similar topic and try the solution. If you still have problem, please upload a screenshot of your job design.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] REST service error : Rest response already sent

Thanks for our reply. My problem was caused by a bad tMySQLInput settings. 

Now my problem is that i've the warning "No operation matching request path "/catalogues/insert" is found" whereas trestrequest end point is /catalogues/insert (same as my rest server)
Do you know how i can fix it ? 

Thanks
Community Manager

Re: [resolved] REST service error : Rest response already sent

Hi
I have no clue right now why the job has this warning. Can you have a test to deactivate the tRestResponse_3 and tRestResponse_4 components and see if the problem still exists.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] REST service error : Rest response already sent

Hi Shong and thanks for the answer
My problem is solved, I just restarted Talend and it worked.