Public API - Not Found

nadardin
nadardin Registered Posts: 5 ✭✭✭✭

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

Best Answer

  • Sarina
    Sarina Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered, Moderator Posts: 321 Dataiker
    Answer ✓

    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

Answers

  • nadardin
    nadardin Registered Posts: 5 ✭✭✭✭

    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

  • Sarina
    Sarina Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered, Moderator Posts: 321 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

  • nadardin
    nadardin Registered Posts: 5 ✭✭✭✭

    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

  • Sarina
    Sarina Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered, Moderator Posts: 321 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

Setup Info
    Tags
      Help me…