Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
nvtd4000
Contributor III
Contributor III

After deploying Rest service to remote engine, what URL i should use to send request to Rest service?

I am using Talend Studio 7.3.1 and Remote Engine 2.10.6 on DEV server. I have a very simple job named "rest1" which includes tRestRequest and tRestResponse. I run the job in Studio and I am able to send a request (POST) to http://localhost:8088/ticket and get back the response.

0695b00000IcTnKAAV.png 

Then I deploy the job to Remote Engine in Dev server with custom port is 5070. So far so good. In Talend Management Console site, I see there is no error in the log. Here is the problem:

I don't know what url i have to use to test it in Dev server.

 

I have tried http://{server ip}:5070/ticket , http://{server ip}:5070/services/ticket,

http://{server ip}:5070/rest1/ticket and i always get back the response similar like this:

 

{

"timestamp": "2021-09-04T23:46:38.520+00:00",

"status": 404,

"error":"Not Found",

"message": "No message available",

"path": "/ticket"

}

Labels (6)
1 Solution

Accepted Solutions
nvtd4000
Contributor III
Contributor III
Author

I have found out the solution:

  1. In tRestRequest component, you put "/" to REST endpoint (instead of "http://localhost:8088").
  2. After deploying to Remote Engine, you can test it with http://{server ip}:5070/services/ticket

View solution in original post

2 Replies
gjeremy1617088143

Hi @Not defined Not defined​ , have you try with https://{server ip}:5070/ticket or https://{server ip}:5070/services/ticket ?

Send me love and kudos

nvtd4000
Contributor III
Contributor III
Author

I have found out the solution:

  1. In tRestRequest component, you put "/" to REST endpoint (instead of "http://localhost:8088").
  2. After deploying to Remote Engine, you can test it with http://{server ip}:5070/services/ticket