[ECOMMERCE-345] Must show error log from salesforce http when error happen Created: 15/Dec/20  Updated: 30/Mar/21  Resolved: 25/Jan/21

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: 1.2.3
Fix Version/s: 1.2.4

Type: Bug Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: maintenance
Remaining Estimate: 0d
Time Spent: 2d 1h
Original Estimate: Not Specified

Attachments: PNG File json-error-log.png     PNG File postman-log.png     PNG File salesforce-ecommerce.png    
Issue Links:
Relates
relates to ECOMMERCE-346 DOC: (SF) add config info for client_... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Ext DAMs maintenance & partnership support
Sprint: Maintenance 40, Maintenance 41
Story Points: 2

 Description   

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


Generated at Mon Feb 12 01:43:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.