Uploaded image for project: 'Analytics'
  1. Analytics
  2. ANALYTICS-278

Should show error log for matomo when fetching data error

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 1.2
    • None
    • None

    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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                yen.lactue Yen Lac Tue
                oanh.thai Oanh Thai Hoang
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 1d 3h 32m
                      1d 3h 32m