Hyperledger Sawtooth Marketplace Rest API 404 error












0














I am trying to build & test the following program on a clean install of Ubuntu v18:



https://github.com/hyperledger/sawtooth-marketplace



After installing, I get a 404 "resource not found" error when I try to navigate to the "Marketplace-Rest-API" (localhost:8040)
and the "Sawtooth-Blockchain-Rest-API" (localhost:8043)



I am not sure why these don't work. The interfaces at localhost:8041 and localhost:8042 work perfectly well. It seems the rest APIs are navigated to in a similar way to these two so I'm not sure why they would work and the others wouldn't.



Edit: It seems I can reach the ports because there is a response in terminal:



 `[2018-11-20 15:16:14 +0000] [10] [INFO] Goin' Fast @ http://market-rest-api:8000
--- Logging error ---
`Traceback (most recent call last):
File "/usr/lib/python3.5/logging/__init__.py", line 982, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 59-63: ordinal not in range(128)
Call stack:
File "/project/sawtooth-marketplace/bin/marketplace-rest-api", line 30, in <module>
main()
File "/project/sawtooth-marketplace/rest_api/api/main.py", line 189, in main
loop.run_forever()
File "/usr/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
self._run_once()
File "/usr/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
handle._run()
File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
self._callback(*self._args)
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 775, in create_server
backlog=backlog, run_async=True)
File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 891, in _helper
logger.debug(self.config.LOGO)
Message: 'n u2584u2584u2584u2584u2584n u2580u2580u2580u2588u2588u2588u2588u2588u2588u2584u2584u2584 _______________n u2584u2584u2584u2584u2584 u2588u2588u2588u2588u2588u2588u2588u2588u2588u2584 / \n u2580u2580u2580u2580u2588u2588u2588u2588u2588u258c u2580u2590u2584 u2580u2590u2588 | Gotta go fast! |n u2580u2580u2588u2588u2588u2588u2588u2584u2584 u2580u2588u2588u2588u2588u2588u2588u2584u2588u2588 | _________________/n u2580u2584u2584u2584u2584u2584 u2580u2580u2588u2584u2580u2588u2550u2550u2550u2550u2588u2580 |/n u2580u2580u2580u2584 u2580u2580u2588u2588u2588 u2580 u2584u2584n u2584u2588u2588u2588u2580u2580u2588u2588u2584u2588u2588u2588u2588u2588u2588u2588u2588u2584 u2584u2580u2580u2580u2580u2580u2580u2588u258cn u2588u2588u2580u2584u2584u2584u2588u2588u2580u2584u2588u2588u2588u2580 u2580u2580u2588u2588u2588u2588 u2584u2588u2588nu2584u2580u2580u2580u2584u2588u2588u2584u2580u2580u258cu2588u2588u2588u2588u2592u2592u2592u2592u2592u2592u2588u2588u2588 u258cu2584u2584u2580nu258c u2590u2580u2588u2588u2588u2588u2590u2588u2588u2588u2592u2592u2592u2592u2592u2590u2588u2588u258cnu2580u2584u2584u2584u2584u2580 u2580u2580u2588u2588u2588u2588u2592u2592u2592u2592u2584u2588u2588u2580n u2580u2580u2588u2588u2588u2588u2588u2588u2588u2588u2588u2580n u2584u2584u2588u2588u2580u2588u2588u2588u2588u2588u2588u2580u2588n u2584u2588u2588u2580 u2580u2580u2580 u2588n u2584u2588 u2590u258cn u2584u2584u2584u2584u2588u258c u2580u2588u2584u2584u2584u2584u2580u2580u2584nu258c u2590 u2580u2580u2584u2584u2584u2580n u2580u2580u2584u2584u2580n'
`


Any help would be much appreciated!










share|improve this question





























    0














    I am trying to build & test the following program on a clean install of Ubuntu v18:



    https://github.com/hyperledger/sawtooth-marketplace



    After installing, I get a 404 "resource not found" error when I try to navigate to the "Marketplace-Rest-API" (localhost:8040)
    and the "Sawtooth-Blockchain-Rest-API" (localhost:8043)



    I am not sure why these don't work. The interfaces at localhost:8041 and localhost:8042 work perfectly well. It seems the rest APIs are navigated to in a similar way to these two so I'm not sure why they would work and the others wouldn't.



    Edit: It seems I can reach the ports because there is a response in terminal:



     `[2018-11-20 15:16:14 +0000] [10] [INFO] Goin' Fast @ http://market-rest-api:8000
    --- Logging error ---
    `Traceback (most recent call last):
    File "/usr/lib/python3.5/logging/__init__.py", line 982, in emit
    stream.write(msg)
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 59-63: ordinal not in range(128)
    Call stack:
    File "/project/sawtooth-marketplace/bin/marketplace-rest-api", line 30, in <module>
    main()
    File "/project/sawtooth-marketplace/rest_api/api/main.py", line 189, in main
    loop.run_forever()
    File "/usr/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
    self._run_once()
    File "/usr/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
    handle._run()
    File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
    self._callback(*self._args)
    File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
    File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 775, in create_server
    backlog=backlog, run_async=True)
    File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 891, in _helper
    logger.debug(self.config.LOGO)
    Message: 'n u2584u2584u2584u2584u2584n u2580u2580u2580u2588u2588u2588u2588u2588u2588u2584u2584u2584 _______________n u2584u2584u2584u2584u2584 u2588u2588u2588u2588u2588u2588u2588u2588u2588u2584 / \n u2580u2580u2580u2580u2588u2588u2588u2588u2588u258c u2580u2590u2584 u2580u2590u2588 | Gotta go fast! |n u2580u2580u2588u2588u2588u2588u2588u2584u2584 u2580u2588u2588u2588u2588u2588u2588u2584u2588u2588 | _________________/n u2580u2584u2584u2584u2584u2584 u2580u2580u2588u2584u2580u2588u2550u2550u2550u2550u2588u2580 |/n u2580u2580u2580u2584 u2580u2580u2588u2588u2588 u2580 u2584u2584n u2584u2588u2588u2588u2580u2580u2588u2588u2584u2588u2588u2588u2588u2588u2588u2588u2588u2584 u2584u2580u2580u2580u2580u2580u2580u2588u258cn u2588u2588u2580u2584u2584u2584u2588u2588u2580u2584u2588u2588u2588u2580 u2580u2580u2588u2588u2588u2588 u2584u2588u2588nu2584u2580u2580u2580u2584u2588u2588u2584u2580u2580u258cu2588u2588u2588u2588u2592u2592u2592u2592u2592u2592u2588u2588u2588 u258cu2584u2584u2580nu258c u2590u2580u2588u2588u2588u2588u2590u2588u2588u2588u2592u2592u2592u2592u2592u2590u2588u2588u258cnu2580u2584u2584u2584u2584u2580 u2580u2580u2588u2588u2588u2588u2592u2592u2592u2592u2584u2588u2588u2580n u2580u2580u2588u2588u2588u2588u2588u2588u2588u2588u2588u2580n u2584u2584u2588u2588u2580u2588u2588u2588u2588u2588u2588u2580u2588n u2584u2588u2588u2580 u2580u2580u2580 u2588n u2584u2588 u2590u258cn u2584u2584u2584u2584u2588u258c u2580u2588u2584u2584u2584u2584u2580u2580u2584nu258c u2590 u2580u2580u2584u2584u2584u2580n u2580u2580u2584u2584u2580n'
    `


    Any help would be much appreciated!










    share|improve this question



























      0












      0








      0







      I am trying to build & test the following program on a clean install of Ubuntu v18:



      https://github.com/hyperledger/sawtooth-marketplace



      After installing, I get a 404 "resource not found" error when I try to navigate to the "Marketplace-Rest-API" (localhost:8040)
      and the "Sawtooth-Blockchain-Rest-API" (localhost:8043)



      I am not sure why these don't work. The interfaces at localhost:8041 and localhost:8042 work perfectly well. It seems the rest APIs are navigated to in a similar way to these two so I'm not sure why they would work and the others wouldn't.



      Edit: It seems I can reach the ports because there is a response in terminal:



       `[2018-11-20 15:16:14 +0000] [10] [INFO] Goin' Fast @ http://market-rest-api:8000
      --- Logging error ---
      `Traceback (most recent call last):
      File "/usr/lib/python3.5/logging/__init__.py", line 982, in emit
      stream.write(msg)
      UnicodeEncodeError: 'ascii' codec can't encode characters in position 59-63: ordinal not in range(128)
      Call stack:
      File "/project/sawtooth-marketplace/bin/marketplace-rest-api", line 30, in <module>
      main()
      File "/project/sawtooth-marketplace/rest_api/api/main.py", line 189, in main
      loop.run_forever()
      File "/usr/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
      self._run_once()
      File "/usr/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
      handle._run()
      File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
      self._callback(*self._args)
      File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
      result = coro.send(None)
      File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 775, in create_server
      backlog=backlog, run_async=True)
      File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 891, in _helper
      logger.debug(self.config.LOGO)
      Message: 'n u2584u2584u2584u2584u2584n u2580u2580u2580u2588u2588u2588u2588u2588u2588u2584u2584u2584 _______________n u2584u2584u2584u2584u2584 u2588u2588u2588u2588u2588u2588u2588u2588u2588u2584 / \n u2580u2580u2580u2580u2588u2588u2588u2588u2588u258c u2580u2590u2584 u2580u2590u2588 | Gotta go fast! |n u2580u2580u2588u2588u2588u2588u2588u2584u2584 u2580u2588u2588u2588u2588u2588u2588u2584u2588u2588 | _________________/n u2580u2584u2584u2584u2584u2584 u2580u2580u2588u2584u2580u2588u2550u2550u2550u2550u2588u2580 |/n u2580u2580u2580u2584 u2580u2580u2588u2588u2588 u2580 u2584u2584n u2584u2588u2588u2588u2580u2580u2588u2588u2584u2588u2588u2588u2588u2588u2588u2588u2588u2584 u2584u2580u2580u2580u2580u2580u2580u2588u258cn u2588u2588u2580u2584u2584u2584u2588u2588u2580u2584u2588u2588u2588u2580 u2580u2580u2588u2588u2588u2588 u2584u2588u2588nu2584u2580u2580u2580u2584u2588u2588u2584u2580u2580u258cu2588u2588u2588u2588u2592u2592u2592u2592u2592u2592u2588u2588u2588 u258cu2584u2584u2580nu258c u2590u2580u2588u2588u2588u2588u2590u2588u2588u2588u2592u2592u2592u2592u2592u2590u2588u2588u258cnu2580u2584u2584u2584u2584u2580 u2580u2580u2588u2588u2588u2588u2592u2592u2592u2592u2584u2588u2588u2580n u2580u2580u2588u2588u2588u2588u2588u2588u2588u2588u2588u2580n u2584u2584u2588u2588u2580u2588u2588u2588u2588u2588u2588u2580u2588n u2584u2588u2588u2580 u2580u2580u2580 u2588n u2584u2588 u2590u258cn u2584u2584u2584u2584u2588u258c u2580u2588u2584u2584u2584u2584u2580u2580u2584nu258c u2590 u2580u2580u2584u2584u2584u2580n u2580u2580u2584u2584u2580n'
      `


      Any help would be much appreciated!










      share|improve this question















      I am trying to build & test the following program on a clean install of Ubuntu v18:



      https://github.com/hyperledger/sawtooth-marketplace



      After installing, I get a 404 "resource not found" error when I try to navigate to the "Marketplace-Rest-API" (localhost:8040)
      and the "Sawtooth-Blockchain-Rest-API" (localhost:8043)



      I am not sure why these don't work. The interfaces at localhost:8041 and localhost:8042 work perfectly well. It seems the rest APIs are navigated to in a similar way to these two so I'm not sure why they would work and the others wouldn't.



      Edit: It seems I can reach the ports because there is a response in terminal:



       `[2018-11-20 15:16:14 +0000] [10] [INFO] Goin' Fast @ http://market-rest-api:8000
      --- Logging error ---
      `Traceback (most recent call last):
      File "/usr/lib/python3.5/logging/__init__.py", line 982, in emit
      stream.write(msg)
      UnicodeEncodeError: 'ascii' codec can't encode characters in position 59-63: ordinal not in range(128)
      Call stack:
      File "/project/sawtooth-marketplace/bin/marketplace-rest-api", line 30, in <module>
      main()
      File "/project/sawtooth-marketplace/rest_api/api/main.py", line 189, in main
      loop.run_forever()
      File "/usr/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
      self._run_once()
      File "/usr/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
      handle._run()
      File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
      self._callback(*self._args)
      File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
      result = coro.send(None)
      File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 775, in create_server
      backlog=backlog, run_async=True)
      File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 891, in _helper
      logger.debug(self.config.LOGO)
      Message: 'n u2584u2584u2584u2584u2584n u2580u2580u2580u2588u2588u2588u2588u2588u2588u2584u2584u2584 _______________n u2584u2584u2584u2584u2584 u2588u2588u2588u2588u2588u2588u2588u2588u2588u2584 / \n u2580u2580u2580u2580u2588u2588u2588u2588u2588u258c u2580u2590u2584 u2580u2590u2588 | Gotta go fast! |n u2580u2580u2588u2588u2588u2588u2588u2584u2584 u2580u2588u2588u2588u2588u2588u2588u2584u2588u2588 | _________________/n u2580u2584u2584u2584u2584u2584 u2580u2580u2588u2584u2580u2588u2550u2550u2550u2550u2588u2580 |/n u2580u2580u2580u2584 u2580u2580u2588u2588u2588 u2580 u2584u2584n u2584u2588u2588u2588u2580u2580u2588u2588u2584u2588u2588u2588u2588u2588u2588u2588u2588u2584 u2584u2580u2580u2580u2580u2580u2580u2588u258cn u2588u2588u2580u2584u2584u2584u2588u2588u2580u2584u2588u2588u2588u2580 u2580u2580u2588u2588u2588u2588 u2584u2588u2588nu2584u2580u2580u2580u2584u2588u2588u2584u2580u2580u258cu2588u2588u2588u2588u2592u2592u2592u2592u2592u2592u2588u2588u2588 u258cu2584u2584u2580nu258c u2590u2580u2588u2588u2588u2588u2590u2588u2588u2588u2592u2592u2592u2592u2592u2590u2588u2588u258cnu2580u2584u2584u2584u2584u2580 u2580u2580u2588u2588u2588u2588u2592u2592u2592u2592u2584u2588u2588u2580n u2580u2580u2588u2588u2588u2588u2588u2588u2588u2588u2588u2580n u2584u2584u2588u2588u2580u2588u2588u2588u2588u2588u2588u2580u2588n u2584u2588u2588u2580 u2580u2580u2580 u2588n u2584u2588 u2590u258cn u2584u2584u2584u2584u2588u258c u2580u2588u2584u2584u2584u2584u2580u2580u2584nu258c u2590 u2580u2580u2584u2584u2584u2580n u2580u2580u2584u2584u2580n'
      `


      Any help would be much appreciated!







      http-status-code-404 hyperledger blockchain ibm-blockchain hyperledger-sawtooth






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 '18 at 15:57







      LegoEngineering

















      asked Nov 19 '18 at 20:53









      LegoEngineeringLegoEngineering

      11




      11
























          1 Answer
          1






          active

          oldest

          votes


















          0














          So the REST API does not work at all for you, it seems.



          Ports 8042 (thinkdb admin) and 8041 (Sawbuck web app) are not related to the REST API.



          My guess is the sawtooth-rest-api and market-rest-api components have not started (if you are using Docker) or you have not started the marketplace-rest-api and the sawtooth-rest-api commands (daemons) if you are running directly in Ubuntu. Are these processes running? Can the ports be reached from the network (e.g., access the Marketplace REST API with telnet localhost 8040 and Sawtooth REST API with telnet localhost 8043 )






          share|improve this answer





















            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%2f53382483%2fhyperledger-sawtooth-marketplace-rest-api-404-error%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









            0














            So the REST API does not work at all for you, it seems.



            Ports 8042 (thinkdb admin) and 8041 (Sawbuck web app) are not related to the REST API.



            My guess is the sawtooth-rest-api and market-rest-api components have not started (if you are using Docker) or you have not started the marketplace-rest-api and the sawtooth-rest-api commands (daemons) if you are running directly in Ubuntu. Are these processes running? Can the ports be reached from the network (e.g., access the Marketplace REST API with telnet localhost 8040 and Sawtooth REST API with telnet localhost 8043 )






            share|improve this answer


























              0














              So the REST API does not work at all for you, it seems.



              Ports 8042 (thinkdb admin) and 8041 (Sawbuck web app) are not related to the REST API.



              My guess is the sawtooth-rest-api and market-rest-api components have not started (if you are using Docker) or you have not started the marketplace-rest-api and the sawtooth-rest-api commands (daemons) if you are running directly in Ubuntu. Are these processes running? Can the ports be reached from the network (e.g., access the Marketplace REST API with telnet localhost 8040 and Sawtooth REST API with telnet localhost 8043 )






              share|improve this answer
























                0












                0








                0






                So the REST API does not work at all for you, it seems.



                Ports 8042 (thinkdb admin) and 8041 (Sawbuck web app) are not related to the REST API.



                My guess is the sawtooth-rest-api and market-rest-api components have not started (if you are using Docker) or you have not started the marketplace-rest-api and the sawtooth-rest-api commands (daemons) if you are running directly in Ubuntu. Are these processes running? Can the ports be reached from the network (e.g., access the Marketplace REST API with telnet localhost 8040 and Sawtooth REST API with telnet localhost 8043 )






                share|improve this answer












                So the REST API does not work at all for you, it seems.



                Ports 8042 (thinkdb admin) and 8041 (Sawbuck web app) are not related to the REST API.



                My guess is the sawtooth-rest-api and market-rest-api components have not started (if you are using Docker) or you have not started the marketplace-rest-api and the sawtooth-rest-api commands (daemons) if you are running directly in Ubuntu. Are these processes running? Can the ports be reached from the network (e.g., access the Marketplace REST API with telnet localhost 8040 and Sawtooth REST API with telnet localhost 8043 )







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 '18 at 23:23









                Dan AndersonDan Anderson

                909112




                909112






























                    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%2f53382483%2fhyperledger-sawtooth-marketplace-rest-api-404-error%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

                    android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                    SQL update select statement

                    'app-layout' is not a known element: how to share Component with different Modules