11 Replies Latest reply on Aug 9, 2016 12:34 AM by gopi.gorantala

    Jive-Sdk : node sdk version conflict

    nagendra1891

      Hey guys

       

      anyone facing this issue ?

       

      ->     v0.12.15

               v4.4.7

              v5.12.0

               v6.3.0

      default -> 0.12.15 (-> v0.12.15)

      node -> stable (-> v6.3.0) (default)

      stable -> 6.3 (-> v6.3.0) (default)

      iojs -> N/A (default)

      bushans-MacBook-Pro:nodevesiontest bushan$

       

      node version 0.12

       

      node app.js

       

      FATAL - { [Error: ENOENT, no such file or directory '/Users/bushan/tiles/nodevesiontest/public/favicon.ico']

        errno: -2,

        code: 'ENOENT',

        path: '/Users/bushan/tiles/nodevesiontest/public/favicon.ico',

        syscall: 'stat' }

       

       

       

       

       

       

      same process with node 6

       

      FATAL - { Error: ENOENT: no such file or directory, stat '/Users/bushan/tiles/nodeversiom/public/favicon.ico'

          at Error (native)

          at Object.fs.statSync (fs.js:987:18)

          at favicon (/Users/bushan/tiles/nodeversiom/node_modules/serve-favicon/index.js:64:15)

          at setupExpressApp (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/jive-sdk-service/lib/bootstrap.js:71:13)

          at setupHttp (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/jive-sdk-service/lib/bootstrap.js:184:9)

          at /Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/jive-sdk-service/lib/bootstrap.js:289:36

          at _fulfilled (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/node_modules/q/q.js:834:54)

          at self.promiseDispatch.done (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/node_modules/q/q.js:863:30)

          at Promise.promise.promiseDispatch (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/node_modules/q/q.js:796:13)

          at /Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/node_modules/q/q.js:556:49

          at runSingle (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/node_modules/q/q.js:137:13)

          at flush (/Users/bushan/tiles/nodeversiom/node_modules/jive-sdk/node_modules/q/q.js:125:13)

          at _combinedTickCallback (internal/process/next_tick.js:67:7)

          at process._tickCallback (internal/process/next_tick.js:98:9)

        errno: -2,

        code: 'ENOENT',

        syscall: 'stat',

        path: '/Users/bushan/tiles/nodeversiom/public/favicon.ico' }

       

       

      Rashed Talukder looks like something is broken or version conflict with node modules.

       

       

       

      any feedback is appreciated

          • Re: Jive-Sdk : node sdk version conflict
            gopi.gorantala

            I am getting the same error too.

             

            [2016-08-07 16:03:34.280] [WARN] jive-sdk - ******************************

            [2016-08-07 16:03:34.284] [WARN] jive-sdk - File persistence is configured.

            [2016-08-07 16:03:34.285] [WARN] jive-sdk - Please note that this should

            [2016-08-07 16:03:34.285] [WARN] jive-sdk - not be used for production!

            [2016-08-07 16:03:34.285] [WARN] jive-sdk - ******************************

            [2016-08-07 16:03:34.298] [INFO] jive-sdk - Running bootstrap.

            [2016-08-07 16:03:34.300] [WARN] jive-sdk - Starting service in HTTP mode

            FATAL - { Error: ENOENT: no such file or directory, stat '/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/public/favicon.ico'

                at Error (native)

                at Object.fs.statSync (fs.js:987:18)

                at favicon (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/serve-favicon/index.js:64:15)

                at setupExpressApp (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/jive-sdk-service/lib/bootstrap.js:71:13)

                at setupHttp (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/jive-sdk-service/lib/bootstrap.js:184:9)

                at /Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/jive-sdk-service/lib/bootstrap.js:289:36

                at _fulfilled (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/node_modules/q/q.js:834:54)

                at self.promiseDispatch.done (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/node_modules/q/q.js:863:30)

                at Promise.promise.promiseDispatch (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/node_modules/q/q.js:796:13)

                at /Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/node_modules/q/q.js:556:49

                at runSingle (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/node_modules/q/q.js:137:13)

                at flush (/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/node_modules/jive-sdk/node_modules/q/q.js:125:13)

                at _combinedTickCallback (internal/process/next_tick.js:67:7)

                at process._tickCallback (internal/process/next_tick.js:98:9)

              errno: -2,

              code: 'ENOENT',

              syscall: 'stat',

              path: '/Users/GopiGorantala/Desktop/Code/Jive_Addon_Codes/widgetRefresh/public/favicon.ico' }

          • Re: Jive-Sdk : node sdk version conflict
            bharatpec

            Hey Nagendra Balachandra,

             

            We encountered the same error (favicon.ico)

            nagendra1891 wrote:

             

            FATAL - { [Error: ENOENT, no such file or directory '/Users/bushan/tiles/nodevesiontest/public/favicon.ico']

            errno: -2,

            code: 'ENOENT',

            path: '/Users/bushan/tiles/nodevesiontest/public/favicon.ico',

            syscall: 'stat' }

             

             

            Although this is not the permanent solution, but I skipped the error by creating a file named favicon.ico and placed it in the relevant folder (In your case it will be '/Users/bushan/tiles/nodevesiontest/public/favicon.ico'). After this re-run node app.js and the error should dissappear.

             

            Bharat.

            • Re: Jive-Sdk : node sdk version conflict
              Ryan Rutan

              Can either of you print out/screenshot your project tree?  Which Command did you use to create this project?

              • Re: Jive-Sdk : node sdk version conflict
                nagendra1891

                Gopi Gorantala

                 

                You can also create a dummy file called favicon.ico under /public

                 

                this will fix the issue.

                1 person found this helpful
                • Re: Jive-Sdk : node sdk version conflict

                  I'm unable to replicate the issue with a newly generated external tile and the following:

                   

                  Jive-SDK: v2.05

                  Node: v0.12.15

                   

                   

                   

                  I can replicate it in an OLD tile/project and the NEW v2+ of the Jive-SDK. If you generate a new example with the newer version of the Jive Node SDK, you'll see that we include a default favicon image. There is a new requirement with a dependency in the updated version of Express. We can update the SDK to block all favicon requests, but there's a possibility someone might need/want it in the future for some reason. So the solution to this issue is to place a favicon.ico image into your /public directory of your integration.

                  1 person found this helpful