10 Replies Latest reply on Jul 27, 2016 9:48 AM by Ryan Rutan

    Swagger4Jive: When adding a tile, never displays the configuration page, fails with error 504

    Scott Hurrey

      Hello All,

       

      I am trying to get Swagger for Jive - An Open Source Add-On for the Open API Initiative running in my Jive 8 Cloud instance. I am building it with jive-sdk, I am able to install it and configure it, as expected.

       

      Meta-Data:

       

      ApplicationVersion
      JiveSBS 2016.1.0.0
      Jive-SDKNode SDK version 0.1.218
      Nodev0.10.33
      Build Cmdjive-sdk build add-on --apphosting="jive"

       

      Issue:

       

      When I go into a space, create a new page -- or edit an existing page -- add a tile and select swagger4jive, I get the spinning wheel of death:

       

      s4j-tile-timeout.png

       

      I don't see any errors in the manage add-ons screen. In the Chrome developer tools, I see the following response:

       

      [
        {
          "result" : {
            "https:\/\/localhost\/osapp\/swagger4jive\/swagger4jive-customTile-config.html?v2&syn_app=wx1a7&ref_wx1a7=tileDefinition:1097" : {
              "error" : {
                "message" : "Unable to retrieve spec for https:\/\/localhost\/osapp\/swagger4jive\/swagger4jive-customTile-config.html?v2&syn_app=wx1a7&ref_wx1a7=tileDefinition:1097. HTTP error 504",
                "code" : 504
              }
            }
          },
          "id" : "gadgets.metadata"
        }
      ]
      

       

      For informational purposes, here is the request that goes with it:

       

        1. Request URL:

          https://<my-community>/gadgets/api/rpc?st=default%3Al6auK0tncOU9cdY1S_-cngQhnBp8z6x4wLaM53PK3uhs-furUq90wEjI4pvCN8jAbXBROlPgk4nPWu8z4QU5stv4Pp4

        2. Request Method:

          POST

        3. Status Code:

          200 OK

        4. Remote Address:

          [2600:1408:7:28c::2c4b]:443

      1. Response Headersview source
        1. Access-Control-Allow-Origin:

          https://<my community>

        2. Cache-Control:

          no-store, no-cache, must-revalidate, private, max-age=0

        3. Connection:

          keep-alive

        4. Content-Encoding:

          gzip

        5. Content-Language:

          en

        6. Content-Length:

          214

        7. Content-Type:

          application/json;charset=UTF-8

        8. Date:

          Thu, 12 May 2016 15:28:55 GMT

        9. Expires:

          Thu, 12 May 2016 15:28:55 GMT

        10. P3P:

          CP="CAO PSA OUR"

        11. Server:

          Apache

        12. Vary:

          Accept-Encoding

        13. X-Frame-Options:

          SAMEORIGIN

        14. X-Jive-Flow-Id:

          3d2c5b31-1856-11e6-a4ff-005056a411e9

        15. X-Jive-Request-Id:

          3d2c5b30-1856-11e6-a4ff-005056a411e9

        16. X-JSL:

          D=20357 t=1463066935392213

      2. Request Headersview source
        1. Accept:

          */*

        2. Accept-Encoding:

          gzip, deflate

        3. Accept-Language:

          en-US,en;q=0.8

        4. Cache-Control:

          no-cache

        5. Connection:

          keep-alive

        6. Content-Length:

          466

        7. Content-Type:

          application/json

        8. Cookie:

          __qca=P0-581615951-1457033720815; WRUID=438255902.1039923700; __CT_Data=gpv=1&apv_9297_www03=1&cpv_9297_www03=1; ATRK_a=4d56c0df76504ced94df1e1537ea0000.2; jive.login.type=form; SPRING_SECURITY_REMEMBER_ME_COOKIE=c2NvdHQuaHVycmV5OjE0NjMxODUwNzA1NjE6ZjRiMTFkZDc4OTcxZWQ5NzAxMjQyNWI4NTJiZWQwNTg; __utma=9761706.87188033.1456494281.1459263112.1462319203.3; __utmz=9761706.1457625150.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); jive.login.ts=1462991561303; jive.server.info="serverName=community.blackboard.com:serverPort=443:contextPath=:localName=localhost:localPort=9200:localAddr=127.0.0.1"; JSESSIONID=E5B625C93CA6E1A3C14293361578945F.node02; BIGipServerpool_vanity_blackboard.jiveon.com=3785731594.20480.0000; PLACE_INFO=; jive.security.context=jsKcD5FpSoHG7znsLfVLIQAAAAAAB1JtHNXTaxLYD9r2w3GX09WrmiXOO1Y2r2/NO84SiVeqxgTyjMAu7gNJRKtR; jive.user.loggedIn=true; _ga=GA1.2.87188033.1456494281; _gat=1; anonymous=false; NITRO_SESSION_c4aa97e5a7cd45d4b03cdf37885c8e3e_2011=NXwxMDgxMTA0fDE3NjcxMDQzODU2fDE0NjMyMzk3MjR8M2ViZjAxYWE2ZDQwYmJlZDUzZTY0MGFkZjc5Yzc2YjdjMmQxYzgxZTMzNDA2N2ZkMzE1MDY3NTliYTYxNzQ2fDA=; X-JCAPI-Token=1ZS10yrO

        9. DNT:

          1

        10. Host:

          <my community>

        11. Origin:

          https://<my community>

        12. Pragma:

          no-cache

        13. Referer:

          https://<my community>/<my space>/edit-page.jspa?pageId=1125

        14. User-Agent:

          Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36

      3. Query String Parametersview sourceview URL encoded
        1. st:

          default:l6auK0tncOU9cdY1S_-cngQhnBp8z6x4wLaM53PK3uhs-furUq90wEjI4pvCN8jAbXBROlPgk4nPWu8z4QU5stv4Pp4

      4. Request Payloadview source
        1.  

          [{method: "gadgets.metadata", id: "gadgets.metadata", params: {container: "default", ids: [,…],…}}]
          0:{method: "gadgets.metadata", id: "gadgets.metadata", params: {container: "default", ids: [,…],…}}
          id:"gadgets.metadata"method:"gadgets.metadata"params:{container: "default", ids: [,…],…}
          container:"default"country:"US"fields:["iframeUrls", "modulePrefs.*", "needsTokenRefresh", "userPrefs.*", "views.preferredHeight",…]
          0:"iframeUrls"1:"modulePrefs.*"2:"needsTokenRefresh"3:"userPrefs.*"4:"views.preferredHeight"5:"views.preferredWidth"6:"expireTimeMs"7:"responseTimeMs"8:"rpcServiceIds"9:"tokenTTL"

           

          groupId:"@self"ids:[,…]

          0:"https://localhost/osapp/swagger4jive/swagger4jive-customTile-config.html?v2&syn_app=wx1a7&ref_wx1a7=tileDefinition:1097"

          language:"en"userId:"@viewer"
        • Re: Swagger4Jive: When adding a tile, never displays the configuration page, fails with error 504
          Ryan Rutan
          Can you confirm that you chose --apphosting="jive" when you built your add-on?  Also, could you share the meta.json & definition.json from your extension_src project directory?
            • Re: Swagger4Jive: When adding a tile, never displays the configuration page, fails with error 504
              Scott Hurrey

              Definitely. Thanks for your help.

               

              Here they are:

               

              meta.json

               

              {
                  "package_version": "1.0",
                  "id": "57b4eeb1-2191-4189-bf0b-192cd57781dc",
                  "type": "client-app",
                  "name": "Swagger for Jive",
                  "description": "This add-on embeds Swagger.io capabilities into Jive",
                  "minimum_version": "0080300000",
                  "icon_16": "extension-16.png",
                  "icon_48": "extension-48.png",
                  "icon_128": "extension-128.png",
                  "released_on": "2016-04-21T14:43:38.070Z",
                  "service_url": "https://localhost",
                  "redirect_url": "%serviceURL%",
                  "author": "Jive Developers",
                  "author_affiliation": "Jive Software (Open Source)",
                  "author_email": "jivedev@jivesoftware.com",
                  "website_url": "https://developer.jivesoftware.com",
                  "community_url": "https://community.jivesoftware.com/community/developer",
                  "support_info": "https://community.jivesoftware.com/community/developer",
                  "info_email": "jivedev@jivesoftware.com",
                  "releasedOn": "2016-04-21T14:43:38.070Z"
              }
              

              definition.json

               

              {
                  "integrationUser": {
                      "systemAdmin": false
                  },
                  "tiles": [
                      {
                          "displayName": "Swagger for Jive",
                          "name": "swagger4jive-embed",
                          "description": "View a Swagger Specification",
                          "style": "CUSTOM_VIEW",
                          "displayWidth": "ALL",
                          "dataProviderKey": "internal",
                          "pageTypes": [
                              "PLACE",
                              "USER"
                          ],
                          "icons": {
                              "16": "%serviceURL%/osapp/swagger4jive/images/icon16.png",
                              "48": "%serviceURL%/osapp/swagger4jive/images/icon48.png",
                              "128": "%serviceURL%/osapp/swagger4jive/images/icon128.png"
                          },
                          "view": "%serviceURL%/osapp/swagger4jive/swagger4jive.html?features=responsive,tile,os-2.5,core-v3",
                          "config": "%serviceURL%/osapp/swagger4jive/swagger4jive-customTile-config.html?v2"
                      },
                      {
                          "displayName": "Swagger for Jive - Stream Integration",
                          "name": "swagger4jive-simple-stream",
                          "description": "Use an external agent (such as Jenkins) to post your Swagger specifications into Jive.",
                          "style": "ACTIVITY",
                          "icons": {
                              "16": "extension-16.png",
                              "48": "extension-48.png"
                          },
                          "config": "/public/swagger4jive-simpleStreamTile-config.html?features=jq-1.11,core-v3,tile",
                          "transform": {
                              "script": "xform.js"
                          },
                          "pageTypes": [
                              "PLACE",
                              "MOBILE",
                              "NEWS"
                          ],
                          "categories": [
                              "other"
                          ],
                          "displayWidth": "ALL",
                          "i18n": "*"
                      }
                  ],
                  "osapps": [
                      {
                          "id": "72dd7331-3425-47b7-af18-7538a998609c",
                          "name": "Swagger for Jive",
                          "appPath": "swagger4jive",
                          "url": "/public/apps/swagger4jive/app.xml"
                      }
                  ]
              }
              

               

              Command and output

               

              shurreymbp:swagger4jive shurrey$ jive-sdk build add-on --apphosting="jive"
              Jive Node SDK version 0.1.218
              [2016-05-12 11:22:09.707] [WARN] jive-sdk - ******************************
              [2016-05-12 11:22:09.709] [WARN] jive-sdk - File persistence is configured.
              [2016-05-12 11:22:09.709] [WARN] jive-sdk - Please note that this should
              [2016-05-12 11:22:09.709] [WARN] jive-sdk - not be used for production!
              [2016-05-12 11:22:09.709] [WARN] jive-sdk - ******************************
              [2016-05-12 11:22:09.709] [DEBUG] jive-sdk - File persistence dir at 'db'
              [2016-05-12 11:22:09.732] [INFO] jive-sdk - Updating definition 'swagger4jive-embed'
              [2016-05-12 11:22:09.733] [INFO] jive-sdk - Updating definition 'swagger4jive-simple-stream'
              [2016-05-12 11:22:09.760] [DEBUG] jive-sdk - Setting up osapp at /Users/shurrey/Documents/workspace/node/swagger4jive/apps/swagger4jive
              [2016-05-12 11:22:09.773] [DEBUG] jive-sdk - Creating directory 'extension_src/public/apps'
              [2016-05-12 11:22:09.774] [DEBUG] jive-sdk - Creating directory 'extension_src/public/tiles'
              [2016-05-12 11:22:09.775] [DEBUG] jive-sdk - Copying 'public' 'to' 'extension_src/public'
              [2016-05-12 11:22:09.784] [DEBUG] jive-sdk - Creating directory 'extension_src/public/services'
              [2016-05-12 11:22:09.786] [DEBUG] jive-sdk - Copying 'public' 'to' 'extension_src/public'
              [2016-05-12 11:22:09.826] [DEBUG] jive-sdk - Copying '/Users/shurrey/Documents/workspace/node/swagger4jive/tiles/swagger4jive-embed/public' 'to' 'extension_src/public/tiles/swagger4jive-embed'
              [2016-05-12 11:22:09.826] [DEBUG] jive-sdk - Copying '/Users/shurrey/Documents/workspace/node/swagger4jive/tiles/swagger4jive-simple-stream/public' 'to' 'extension_src/public/tiles/swagger4jive-simple-stream'
              [2016-05-12 11:22:09.848] [DEBUG] jive-sdk - Copying '/Users/shurrey/Documents/workspace/node/swagger4jive/apps/swagger4jive/public' 'to' 'extension_src/public/apps/swagger4jive'
              [2016-05-12 11:22:10.228] [DEBUG] jive-sdk - apps:
              [
                  {
                      "id": "72dd7331-3425-47b7-af18-7538a998609c",
                      "name": "Swagger for Jive",
                      "appPath": "swagger4jive",
                      "url": "/public/apps/swagger4jive/app.xml"
                  }
              ]
              [2016-05-12 11:22:10.229] [DEBUG] jive-sdk - packaged cartridges:
              []
              [2016-05-12 11:22:10.236] [DEBUG] jive-sdk - Extension meta:
              {
                  "package_version": "1.0",
                  "id": "57b4eeb1-2191-4189-bf0b-192cd57781dc",
                  "type": "client-app",
                  "name": "Swagger for Jive",
                  "description": "This add-on embeds Swagger.io capabilities into Jive",
                  "minimum_version": "0080300000",
                  "icon_16": "extension-16.png",
                  "icon_48": "extension-48.png",
                  "icon_128": "extension-128.png",
                  "released_on": "2016-04-21T14:43:38.070Z",
                  "service_url": "https://localhost",
                  "redirect_url": "undefinederviceURL%",
                  "author": "Jive Developers",
                  "author_affiliation": "Jive Software (Open Source)",
                  "author_email": "jivedev@jivesoftware.com",
                  "website_url": "https://developer.jivesoftware.com",
                  "community_url": "https://community.jivesoftware.com/community/developer",
                  "support_info": "https://community.jivesoftware.com/community/developer",
                  "info_email": "jivedev@jivesoftware.com",
                  "releasedOn": "2016-04-21T14:43:38.070Z"
              }
              [2016-05-12 11:22:10.272] [DEBUG] jive-sdk - Zipping 'extension_src/definition.json' 'to' 'extension.zip' ' : ' 'definition.json'
              [2016-05-12 11:22:10.373] [DEBUG] jive-sdk - Zipping 'extension_src/meta.json' 'to' 'extension.zip' ' : ' 'meta.json'
              [2016-05-12 11:22:10.419] [DEBUG] jive-sdk - Zipping 'extension_src/data/eula.html' 'to' 'extension.zip' ' : ' 'data/eula.html'
              [2016-05-12 11:22:10.420] [DEBUG] jive-sdk - Zipping 'extension_src/data/extension-128.png' 'to' 'extension.zip' ' : ' 'data/extension-128.png'
              [2016-05-12 11:22:10.421] [DEBUG] jive-sdk - Zipping 'extension_src/data/extension-16.png' 'to' 'extension.zip' ' : ' 'data/extension-16.png'
              [2016-05-12 11:22:10.421] [DEBUG] jive-sdk - Zipping 'extension_src/data/extension-48.png' 'to' 'extension.zip' ' : ' 'data/extension-48.png'
              [2016-05-12 11:22:10.422] [DEBUG] jive-sdk - Zipping 'extension_src/data/install_instructions.html' 'to' 'extension.zip' ' : ' 'data/install_instructions.html'
              [2016-05-12 11:22:10.422] [DEBUG] jive-sdk - Zipping 'extension_src/data/overview.html' 'to' 'extension.zip' ' : ' 'data/overview.html'
              [2016-05-12 11:22:10.423] [DEBUG] jive-sdk - Zipping 'extension_src/data/privacy_policy.html' 'to' 'extension.zip' ' : ' 'data/privacy_policy.html'
              [2016-05-12 11:22:10.424] [DEBUG] jive-sdk - Zipping 'extension_src/data/screenshot_1.png' 'to' 'extension.zip' ' : ' 'data/screenshot_1.png'
              [2016-05-12 11:22:10.424] [DEBUG] jive-sdk - Zipping 'extension_src/data/screenshot_2.png' 'to' 'extension.zip' ' : ' 'data/screenshot_2.png'
              [2016-05-12 11:22:10.425] [DEBUG] jive-sdk - Zipping 'extension_src/data/xform.js' 'to' 'extension.zip' ' : ' 'data/xform.js'
              [2016-05-12 11:22:10.425] [DEBUG] jive-sdk - Zipping 'extension_src/i18n/en.properties' 'to' 'extension.zip' ' : ' 'i18n/en.properties'
              [2016-05-12 11:22:10.425] [DEBUG] jive-sdk - Zipping 'extension_src/i18n/root.properties' 'to' 'extension.zip' ' : ' 'i18n/root.properties'
              [2016-05-12 11:22:10.425] [DEBUG] jive-sdk - Zipping 'extension_src/public/common.js' 'to' 'extension.zip' ' : ' 'public/common.js'
              [2016-05-12 11:22:10.425] [DEBUG] jive-sdk - Zipping 'extension_src/public/config-adaptor.js' 'to' 'extension.zip' ' : ' 'public/config-adaptor.js'
              [2016-05-12 11:22:10.426] [DEBUG] jive-sdk - Zipping 'extension_src/public/diagnostics.js' 'to' 'extension.zip' ' : ' 'public/diagnostics.js'
              [2016-05-12 11:22:10.426] [DEBUG] jive-sdk - Zipping 'extension_src/public/jive-ee.css' 'to' 'extension.zip' ' : ' 'public/jive-ee.css'
              [2016-05-12 11:22:10.426] [DEBUG] jive-sdk - Zipping 'extension_src/public/main.js' 'to' 'extension.zip' ' : ' 'public/main.js'
              [2016-05-12 11:22:10.426] [DEBUG] jive-sdk - Zipping 'extension_src/public/style.css' 'to' 'extension.zip' ' : ' 'public/style.css'
              [2016-05-12 11:22:10.426] [DEBUG] jive-sdk - Zipping 'extension_src/public/swagger4jive-simpleStreamTile-config.html' 'to' 'extension.zip' ' : ' 'public/swagger4jive-simpleStreamTile-config.html'
              [2016-05-12 11:22:10.462] [DEBUG] jive-sdk - Zipping 'extension_src/public/javascripts/bootstrap-30.js' 'to' 'extension.zip' ' : ' 'public/javascripts/bootstrap-30.js'
              [2016-05-12 11:22:10.462] [DEBUG] jive-sdk - Zipping 'extension_src/public/javascripts/bootstrap-30.min.js' 'to' 'extension.zip' ' : ' 'public/javascripts/bootstrap-30.min.js'
              [2016-05-12 11:22:10.463] [DEBUG] jive-sdk - Zipping 'extension_src/public/javascripts/bootstrap.min.js' 'to' 'extension.zip' ' : ' 'public/javascripts/bootstrap.min.js'
              [2016-05-12 11:22:10.468] [DEBUG] jive-sdk - Zipping 'extension_src/public/javascripts/jQuery-1.10.2.js' 'to' 'extension.zip' ' : ' 'public/javascripts/jQuery-1.10.2.js'
              [2016-05-12 11:22:10.468] [DEBUG] jive-sdk - Zipping 'extension_src/public/javascripts/jquery-1.8.3.js' 'to' 'extension.zip' ' : ' 'public/javascripts/jquery-1.8.3.js'
              [2016-05-12 11:22:10.469] [DEBUG] jive-sdk - Zipping 'extension_src/public/javascripts/jquery.base64.min.js' 'to' 'extension.zip' ' : ' 'public/javascripts/jquery.base64.min.js'
              [2016-05-12 11:22:10.469] [DEBUG] jive-sdk - Zipping 'extension_src/public/stylesheets/bootstrap-30.css' 'to' 'extension.zip' ' : ' 'public/stylesheets/bootstrap-30.css'
              [2016-05-12 11:22:10.469] [DEBUG] jive-sdk - Zipping 'extension_src/public/stylesheets/bootstrap-30.min.css' 'to' 'extension.zip' ' : ' 'public/stylesheets/bootstrap-30.min.css'
              [2016-05-12 11:22:10.470] [DEBUG] jive-sdk - Zipping 'extension_src/public/stylesheets/bootstrap.css' 'to' 'extension.zip' ' : ' 'public/stylesheets/bootstrap.css'
              [2016-05-12 11:22:10.471] [DEBUG] jive-sdk - Zipping 'extension_src/public/stylesheets/bootstrap.min.css' 'to' 'extension.zip' ' : ' 'public/stylesheets/bootstrap.min.css'
              [2016-05-12 11:22:10.471] [DEBUG] jive-sdk - Zipping 'extension_src/public/stylesheets/style.css' 'to' 'extension.zip' ' : ' 'public/stylesheets/style.css'
              [2016-05-12 11:22:10.504] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/.DS_Store' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/.DS_Store'
              [2016-05-12 11:22:10.506] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/app.xml' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/app.xml'
              [2016-05-12 11:22:10.510] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/o2c.html' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/o2c.html'
              [2016-05-12 11:22:10.510] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/petstore.json' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/petstore.json'
              [2016-05-12 11:22:10.512] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/swagger4jive-createNew.html' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/swagger4jive-createNew.html'
              [2016-05-12 11:22:10.513] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/swagger4jive-customTile-config.html' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/swagger4jive-customTile-config.html'
              [2016-05-12 11:22:10.513] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/swagger4jive-placeSettings-config.html' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/swagger4jive-placeSettings-config.html'
              [2016-05-12 11:22:10.513] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/swagger4jive.html' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/swagger4jive.html'
              [2016-05-12 11:22:10.514] [DEBUG] jive-sdk - Zipping 'extension_src/public/tiles/swagger4jive-simple-stream/.placeholder' 'to' 'extension.zip' ' : ' 'public/tiles/swagger4jive-simple-stream/.placeholder'
              [2016-05-12 11:22:10.594] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/fonts/DroidSans-Bold.ttf' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/fonts/DroidSans-Bold.ttf'
              [2016-05-12 11:22:10.595] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/fonts/DroidSans.ttf' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/fonts/DroidSans.ttf'
              [2016-05-12 11:22:10.596] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/print.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/print.css'
              [2016-05-12 11:22:10.596] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/reset.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/reset.css'
              [2016-05-12 11:22:10.597] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/screen.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/screen.css'
              [2016-05-12 11:22:10.598] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/style.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/style.css'
              [2016-05-12 11:22:10.599] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/swagger4jive-createNew.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/swagger4jive-createNew.css'
              [2016-05-12 11:22:10.599] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/swagger4jive-customTile-config.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/swagger4jive-customTile-config.css'
              [2016-05-12 11:22:10.600] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/swagger4jive-placeSettings-config.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/swagger4jive-placeSettings-config.css'
              [2016-05-12 11:22:10.601] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/swagger4jive.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/swagger4jive.css'
              [2016-05-12 11:22:10.602] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/css/typography.css' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/css/typography.css'
              [2016-05-12 11:22:10.603] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/collapse.gif' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/collapse.gif'
              [2016-05-12 11:22:10.604] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/expand.gif' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/expand.gif'
              [2016-05-12 11:22:10.604] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/explorer_icons.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/explorer_icons.png'
              [2016-05-12 11:22:10.604] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/favicon-16x16.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/favicon-16x16.png'
              [2016-05-12 11:22:10.605] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/favicon-32x32.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/favicon-32x32.png'
              [2016-05-12 11:22:10.605] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/favicon.ico' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/favicon.ico'
              [2016-05-12 11:22:10.606] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/icon128.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/icon128.png'
              [2016-05-12 11:22:10.606] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/icon16.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/icon16.png'
              [2016-05-12 11:22:10.607] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/icon48.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/icon48.png'
              [2016-05-12 11:22:10.607] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/logo_small.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/logo_small.png'
              [2016-05-12 11:22:10.608] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/pet_store_api.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/pet_store_api.png'
              [2016-05-12 11:22:10.609] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/throbber.gif' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/throbber.gif'
              [2016-05-12 11:22:10.609] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/images/wordnik_api.png' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/images/wordnik_api.png'
              [2016-05-12 11:22:10.610] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/.DS_Store' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/.DS_Store'
              [2016-05-12 11:22:10.611] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/coreapi-context-resolver-v3.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/coreapi-context-resolver-v3.js'
              [2016-05-12 11:22:10.612] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/main.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/main.js'
              [2016-05-12 11:22:10.613] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/swagger4jive-createNew.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/swagger4jive-createNew.js'
              [2016-05-12 11:22:10.614] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/swagger4jive-customTile-config.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/swagger4jive-customTile-config.js'
              [2016-05-12 11:22:10.615] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/swagger4jive-placeSettings-config.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/swagger4jive-placeSettings-config.js'
              [2016-05-12 11:22:10.615] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/swagger4jive.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/swagger4jive.js'
              [2016-05-12 11:22:10.630] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/swagger-ui.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/swagger-ui.js'
              [2016-05-12 11:22:10.630] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/swagger-ui.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/swagger-ui.min.js'
              [2016-05-12 11:22:10.710] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/en.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/en.js'
              [2016-05-12 11:22:10.712] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/es.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/es.js'
              [2016-05-12 11:22:10.712] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/fr.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/fr.js'
              [2016-05-12 11:22:10.712] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/geo.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/geo.js'
              [2016-05-12 11:22:10.713] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/it.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/it.js'
              [2016-05-12 11:22:10.713] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/ja.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/ja.js'
              [2016-05-12 11:22:10.714] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/pl.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/pl.js'
              [2016-05-12 11:22:10.714] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/pt.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/pt.js'
              [2016-05-12 11:22:10.714] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/ru.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/ru.js'
              [2016-05-12 11:22:10.714] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/tr.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/tr.js'
              [2016-05-12 11:22:10.714] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/translator.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/translator.js'
              [2016-05-12 11:22:10.715] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lang/zh-cn.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lang/zh-cn.js'
              [2016-05-12 11:22:10.715] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/backbone-min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/backbone-min.js'
              [2016-05-12 11:22:10.715] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/handlebars-2.0.0.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/handlebars-2.0.0.js'
              [2016-05-12 11:22:10.715] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/highlight.9.1.0.pack.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/highlight.9.1.0.pack.js'
              [2016-05-12 11:22:10.715] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/highlight.9.1.0.pack_extended.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/highlight.9.1.0.pack_extended.js'
              [2016-05-12 11:22:10.716] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/jquery-1.8.0.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/jquery-1.8.0.min.js'
              [2016-05-12 11:22:10.716] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/jquery.ba-bbq.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/jquery.ba-bbq.min.js'
              [2016-05-12 11:22:10.716] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/jquery.slideto.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/jquery.slideto.min.js'
              [2016-05-12 11:22:10.717] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/jquery.wiggle.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/jquery.wiggle.min.js'
              [2016-05-12 11:22:10.717] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/js-yaml.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/js-yaml.min.js'
              [2016-05-12 11:22:10.717] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/jsoneditor.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/jsoneditor.min.js'
              [2016-05-12 11:22:10.717] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/lodash.min.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/lodash.min.js'
              [2016-05-12 11:22:10.718] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/marked.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/marked.js'
              [2016-05-12 11:22:10.718] [DEBUG] jive-sdk - Zipping 'extension_src/public/apps/swagger4jive/javascripts/dist/lib/swagger-oauth.js' 'to' 'extension.zip' ' : ' 'public/apps/swagger4jive/javascripts/dist/lib/swagger-oauth.js'
              [2016-05-12 11:22:10.768] [INFO] jive-sdk - 2406254 total bytes written to extension archive  'extension.zip'
              [2016-05-12 11:22:10.837] [INFO] jive-sdk - Updated 3 data file(s): [tileDefinition, extstreamsDefinition, jiveExtension]
              
              • Re: Swagger4Jive: When adding a tile, never displays the configuration page, fails with error 504
                gopi.gorantala

                Hi Ryan Rutan Aron Racho

                 

                I am getting the following error when I run the command =>   jive-sdk build add-on --apphosting="jive", Can you please help me with pointers where I went wrong ? (I am deploying the add-on in one of my on-premises development environment).

                 

                G:\jive App\jive app>jive-sdk build add-on --apphosting="jive"

                Jive Node SDK version 0.1.219

                [2016-07-05 11:14:28.017] [WARN] jive-sdk - ******************************

                [2016-07-05 11:14:28.020] [WARN] jive-sdk - File persistence is configured.

                [2016-07-05 11:14:28.021] [WARN] jive-sdk - Please note that this should

                [2016-07-05 11:14:28.021] [WARN] jive-sdk - not be used for production!

                [2016-07-05 11:14:28.021] [WARN] jive-sdk - ******************************

                [2016-07-05 11:14:28.035] [ERROR] jive-sdk - Error: Error: ENOENT: no such file or directory, lstat 'G:\jive App\jive app\public'

                    at C:\Users\gorango\AppData\Roaming\npm\node_modules\jive-sdk\jive-sdk-service\lib\extension\extension.js:144:21

                    at _rejected (C:\Users\gorango\AppData\Roaming\npm\node_modules\jive-sdk\node_modules\q\q.js:890:24)

                    at C:\Users\gorango\AppData\Roaming\npm\node_modules\jive-sdk\node_modules\q\q.js:917:30

                    at makePromise.when (C:\Users\gorango\AppData\Roaming\npm\node_modules\jive-sdk\node_modules\q\q.js:734:31)

                    at makePromise.promise.promiseDispatch (C:\Users\gorango\AppData\Roaming\npm\node_modules\jive-sdk\node_modules\q\q.js:551:41)

                    at Immediate._onImmediate (C:\Users\gorango\AppData\Roaming\npm\node_modules\jive-sdk\node_modules\q\q.js:438:41)

                    at processImmediate [as _immediateCallback] (timers.js:383:17)