Public API - Not Found

Solved!
nadardin
Level 2
Public API - Not Found

Hi Team,

I am trying to connect public API (https://doc.dataiku.com/dss/api/8.0/apinode-user/) through http call. when I am trying to connect, below error we are facing

{'errorType' : 'Not Found', 'message': ''Not Found' /dip/publicapi/v1/tap1/tapPredict/predict'

Regards,

Dinesh Nadar

0 Kudos
1 Solution
SarinaS
Dataiker

Hi @nadardin,

It sounds like you are trying to hit one of your API endpoints for the service tap1 and the endpoint tapPredict. From the error message, Iโ€™m wondering if you might be hitting an API node endpoint from your DSS Design node host. In order to hit the API node endpoints, you will use the host and port from your API node.

You can find the full request endpoint URL by going into your API deployer > Select your deployment > Summary > Endpoint URL:

Screen Shot 2021-02-04 at 11.43.48 AM.png

In this screenshot my serviceId is Tutorial_Deployment and my endpointId is High_Revenue_Customers.

Note that if try and hit the incorrect host:
http://localhost:13803/public/api/v1/Tutorial_Deployment/High_Revenue_Customers/predict, where the host is from my DSS Designer, I receive the same โ€œNot Foundโ€ error message that you received. The correct endpoint in this example is the one listed as the endpoint URL.   

If that doesnโ€™t address your use case, maybe you can attach some screenshots of the tap1 setup and your request attempt?

Thank you,
Sarina

View solution in original post

5 Replies
SarinaS
Dataiker

Hi @nadardin,

It sounds like you are trying to hit one of your API endpoints for the service tap1 and the endpoint tapPredict. From the error message, Iโ€™m wondering if you might be hitting an API node endpoint from your DSS Design node host. In order to hit the API node endpoints, you will use the host and port from your API node.

You can find the full request endpoint URL by going into your API deployer > Select your deployment > Summary > Endpoint URL:

Screen Shot 2021-02-04 at 11.43.48 AM.png

In this screenshot my serviceId is Tutorial_Deployment and my endpointId is High_Revenue_Customers.

Note that if try and hit the incorrect host:
http://localhost:13803/public/api/v1/Tutorial_Deployment/High_Revenue_Customers/predict, where the host is from my DSS Designer, I receive the same โ€œNot Foundโ€ error message that you received. The correct endpoint in this example is the one listed as the endpoint URL.   

If that doesnโ€™t address your use case, maybe you can attach some screenshots of the tap1 setup and your request attempt?

Thank you,
Sarina

nadardin
Level 2
Author

Hi @SarinaS 

Thanks

Exactly Right Problem, Can we connect API without doing below step :-

API deployer > Select your deployment > Summary > Endpoint URL

I am trying to connect the endpoint with out api deployment and not by downloading the package. can we do ?

Regards,

Dinesh

0 Kudos
SarinaS
Dataiker

Hi @nadardin,

Thank you for confirming that this is what you are looking for.  It sounds like you may not have access to the API deployer with your Dataiku license?  If so, deploying and hitting API endpoints through the predict endpoints does require the API deployer.  

If that doesn't address your current setup, please feel free to give a little more detail on your setup. 

 

Thank you,

Sarina

 

 

0 Kudos
nadardin
Level 2
Author

Hi @SarinaS ,

Facing below error -

Failed contacting the API node

Failed to get deployment status form API node '/public/api/v1/vap/vap_v1/predict'

Regards,

Dinesh 

 

0 Kudos
SarinaS
Dataiker

Hi @nadardin ,

Can you confirm if you now have access to the API deployer?  Do you also have an API node installed: https://doc.dataiku.com/dss/latest/apinode/installing-apinode.html?

Thank you,

Sarina

 

 

0 Kudos