Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-345

Must show error log from salesforce http when error happen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.2.4
    • 1.2.3
    • None

      Steps to reproduce

      1.  Config salesforce ecommerce with connection as below: 
      class: info.magnolia.ecommerce.common.EcommerceDefinition
      type: salesforce-commerce
      enabled: true
      implementation:
        products:
          all: info.magnolia.ecommerce.salesforce.products.All
          byId: info.magnolia.ecommerce.salesforce.products.ById
          byCategoryId: info.magnolia.ecommerce.salesforce.products.ByCategoryId
          searchByText: info.magnolia.ecommerce.salesforce.products.SearchByText
        categories:
          all: info.magnolia.ecommerce.salesforce.categories.All
          byId: info.magnolia.ecommerce.salesforce.categories.ById
          byParentCategoryId: info.magnolia.ecommerce.salesforce.categories.ByParentCategoryId
          byProductId: info.magnolia.ecommerce.salesforce.categories.ByProductId
      connections:
        connection5:
          authUrl: https://account.demandware.com/dw/oauth2/access_token
          baseUrl: https://dev11-web-gopro.demandware.net/s/-/dw/data/v20_10
          enabled: true
          credentials:
            username: 703e2790-a839-4a70-af47-2f2ef4208840
            password: agSis$dP7&nG
          parameters:
            shopUrl: /s/RefArch/dw/shop/v20_10
            siteId: no-site
      
      1.  Open ecommerce app and only see 

       There are no error log as well

       

      When I do tried with postman I see the error 

      And when I do debug I see the error : 

      Expected results

      Must show error log when receiving error json 

      Actual results

      Workaround

      Development notes

        Acceptance criteria

          1. json-error-log.png
            json-error-log.png
            812 kB
          2. postman-log.png
            postman-log.png
            297 kB
          3. salesforce-ecommerce.png
            salesforce-ecommerce.png
            177 kB

              oanh.thai Oanh Thai Hoang
              oanh.thai Oanh Thai Hoang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2d 1h
                    2d 1h