Why am i getting HTTP 404 & sub_code“:”S00004 ? IBM Watson












0















I am using curl command :




curl -X POST --user "apikey:xxx"
--header "Content-Type: application/json"
--header "Accept: application/json"
--data-binary @profile.json
"https://gateway-fra.watsonplatform.net/personality-insights/api"




and IBM is giving me response:



x{"code":404,"sub_code":"S00004","error":"Not Found"}%



anyone has idea why?



this is my .json file



https://watson-developer-cloud.github.io/doc-tutorial-downloads/personality-insights/profile.json










share|improve this question





























    0















    I am using curl command :




    curl -X POST --user "apikey:xxx"
    --header "Content-Type: application/json"
    --header "Accept: application/json"
    --data-binary @profile.json
    "https://gateway-fra.watsonplatform.net/personality-insights/api"




    and IBM is giving me response:



    x{"code":404,"sub_code":"S00004","error":"Not Found"}%



    anyone has idea why?



    this is my .json file



    https://watson-developer-cloud.github.io/doc-tutorial-downloads/personality-insights/profile.json










    share|improve this question



























      0












      0








      0








      I am using curl command :




      curl -X POST --user "apikey:xxx"
      --header "Content-Type: application/json"
      --header "Accept: application/json"
      --data-binary @profile.json
      "https://gateway-fra.watsonplatform.net/personality-insights/api"




      and IBM is giving me response:



      x{"code":404,"sub_code":"S00004","error":"Not Found"}%



      anyone has idea why?



      this is my .json file



      https://watson-developer-cloud.github.io/doc-tutorial-downloads/personality-insights/profile.json










      share|improve this question
















      I am using curl command :




      curl -X POST --user "apikey:xxx"
      --header "Content-Type: application/json"
      --header "Accept: application/json"
      --data-binary @profile.json
      "https://gateway-fra.watsonplatform.net/personality-insights/api"




      and IBM is giving me response:



      x{"code":404,"sub_code":"S00004","error":"Not Found"}%



      anyone has idea why?



      this is my .json file



      https://watson-developer-cloud.github.io/doc-tutorial-downloads/personality-insights/profile.json







      machine-learning artificial-intelligence ibm-watson






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 2:03









      Mamoon Raja

      42426




      42426










      asked Nov 14 '18 at 14:34









      Stefanos LalićStefanos Lalić

      83




      83
























          1 Answer
          1






          active

          oldest

          votes


















          5














          Try using the following curl command:



          curl -X POST --user "apikey:xxxxxxxx" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"



          Replace xxxxxxxx with your apikey. Please avoid using real apikey in public in the future. Anyone can use your key. I have edited the question to hide it.
          Please follow the API reference for Personality Insights for more info.






          share|improve this answer


























          • Thanks that worked!

            – Stefanos Lalić
            Nov 15 '18 at 12:51











          • So the problem was i was using " " while i shouldnt ?

            – Stefanos Lalić
            Nov 15 '18 at 12:52






          • 1





            The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

            – Mamoon Raja
            Nov 15 '18 at 14:31











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302634%2fwhy-am-i-getting-http-404-sub-codes00004-ibm-watson%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          Try using the following curl command:



          curl -X POST --user "apikey:xxxxxxxx" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"



          Replace xxxxxxxx with your apikey. Please avoid using real apikey in public in the future. Anyone can use your key. I have edited the question to hide it.
          Please follow the API reference for Personality Insights for more info.






          share|improve this answer


























          • Thanks that worked!

            – Stefanos Lalić
            Nov 15 '18 at 12:51











          • So the problem was i was using " " while i shouldnt ?

            – Stefanos Lalić
            Nov 15 '18 at 12:52






          • 1





            The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

            – Mamoon Raja
            Nov 15 '18 at 14:31
















          5














          Try using the following curl command:



          curl -X POST --user "apikey:xxxxxxxx" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"



          Replace xxxxxxxx with your apikey. Please avoid using real apikey in public in the future. Anyone can use your key. I have edited the question to hide it.
          Please follow the API reference for Personality Insights for more info.






          share|improve this answer


























          • Thanks that worked!

            – Stefanos Lalić
            Nov 15 '18 at 12:51











          • So the problem was i was using " " while i shouldnt ?

            – Stefanos Lalić
            Nov 15 '18 at 12:52






          • 1





            The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

            – Mamoon Raja
            Nov 15 '18 at 14:31














          5












          5








          5







          Try using the following curl command:



          curl -X POST --user "apikey:xxxxxxxx" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"



          Replace xxxxxxxx with your apikey. Please avoid using real apikey in public in the future. Anyone can use your key. I have edited the question to hide it.
          Please follow the API reference for Personality Insights for more info.






          share|improve this answer















          Try using the following curl command:



          curl -X POST --user "apikey:xxxxxxxx" --header "Content-Type: application/json" --header "Accept: application/json" --data-binary @profile.json "https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true"



          Replace xxxxxxxx with your apikey. Please avoid using real apikey in public in the future. Anyone can use your key. I have edited the question to hide it.
          Please follow the API reference for Personality Insights for more info.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 14 '18 at 23:03

























          answered Nov 14 '18 at 22:56









          Mamoon RajaMamoon Raja

          42426




          42426













          • Thanks that worked!

            – Stefanos Lalić
            Nov 15 '18 at 12:51











          • So the problem was i was using " " while i shouldnt ?

            – Stefanos Lalić
            Nov 15 '18 at 12:52






          • 1





            The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

            – Mamoon Raja
            Nov 15 '18 at 14:31



















          • Thanks that worked!

            – Stefanos Lalić
            Nov 15 '18 at 12:51











          • So the problem was i was using " " while i shouldnt ?

            – Stefanos Lalić
            Nov 15 '18 at 12:52






          • 1





            The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

            – Mamoon Raja
            Nov 15 '18 at 14:31

















          Thanks that worked!

          – Stefanos Lalić
          Nov 15 '18 at 12:51





          Thanks that worked!

          – Stefanos Lalić
          Nov 15 '18 at 12:51













          So the problem was i was using " " while i shouldnt ?

          – Stefanos Lalić
          Nov 15 '18 at 12:52





          So the problem was i was using " " while i shouldnt ?

          – Stefanos Lalić
          Nov 15 '18 at 12:52




          1




          1





          The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

          – Mamoon Raja
          Nov 15 '18 at 14:31





          The URL was not complete. You were using https://gateway-fra.watsonplatform.net/personality-insights/api instead of https://gateway-fra.watsonplatform.net/personality-insights/api/v3/profile?version=2017-10-13&consumption_preferences=true&raw_scores=true

          – Mamoon Raja
          Nov 15 '18 at 14:31




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302634%2fwhy-am-i-getting-http-404-sub-codes00004-ibm-watson%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Xamarin.iOS Cant Deploy on Iphone

          Glorious Revolution

          Dulmage-Mendelsohn matrix decomposition in Python