[ANALYTICS-278] Should show error log for matomo when fetching data error Created: 08/Dec/20  Updated: 08/Jan/21  Resolved: 07/Jan/21

Status: Closed
Project: Analytics
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2

Type: Improvement Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Yen Lac Tue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d 3h 32m
Original Estimate: Not Specified

Attachments: PNG File image-2020-12-08-09-34-20-855.png    
Issue Links:
Cloners
is cloned by ANALYTICS-279 default metric total time spent alway... 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)
Epic Link: UI/UX Dash improvements
Sprint: Add-Ons 54
Story Points: 2

 Description   

Steps to reproduce

  •  Config matomo supplier with wrong id-site: 31 as below:
  • class: info.magnolia.analytics.matomo.datasource.MatomoDataSupplierWithTransformer
    credentials:
      parameters:
        serverUrl: https://demo.matomo.org
        tokenAuth: anonymous
    parameters:
      method: UserCountry.getCountry
      module: API
      idSite: 31
      date: last7
      period: day
      format: json
    
  •  Add a new widget with that supplier

.. Logs, screenshots, gifs...

Expected results

Should show error and log error as well. Currently, I have to log info in my local to see the json error. Here is the log I got

{"result":"error","message":"You can't access this resource as it requires 'view' access for the website id = 31."}

Actual results

There are no error log and still show empty chart


Generated at Sun Feb 11 23:17:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.