knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
14.08k stars 1.27k forks source link

Analytics Page Bug - Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location #1821

Open rpmcoding opened 3 months ago

rpmcoding commented 3 months ago

Version:

Description of the bug and steps to reproduce:

Go to analytics page, select a campaign and select a timeframe of around a year and click the blue search button.

Get this error in the console

index-kDoPtQrv.js:41 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/campaigns/analytics?id=20". at ga (https://listmonk.********.co/admin/static/index-kDoPtQrv.js:41:17751) at IO (https://listmonk.********.co/admin/static/index-kDoPtQrv.js:41:17330) at Xe.confirmTransition (https://listmonk.********.co/admin/static/index-kDoPtQrv.js:41:20445) at Xe.transitionTo (https://listmonk.********.co/admin/static/index-kDoPtQrv.js:41:19787) at t.push (https://listmonk********.co/admin/static/index-kDoPtQrv.js:41:23117) at https://listmonk.********.co/admin/static/index-kDoPtQrv.js:41:27820 at new Promise (<anonymous>) at ae.push (https://listmonk.********.co/admin/static/index-kDoPtQrv.js:41:27784) at o.onSubmit (https://listmonk.********.co/admin/static/CampaignAnalytics-v_l3a_aZ.js:1:2190) at submit (https://listmonk.********.co/admin/static/CampaignAnalytics-v_l3a_aZ.js:1:3901)

##########

I also get this error in the console around a minute later.

GET https://listmonk.*****.co/api/events?type=error 504 (Gateway Time-out)

mpilnan commented 3 months ago

To me, this occurs with any attempt to change the analytics timeframe, not just around a year.

The data does not seem to load as a result, which makes viewing older analytics impossible.

rpmcoding commented 3 months ago

Seems like a major bug...

MaximilianKohler commented 3 months ago

It works for me on v2.5.1. Screenshot 2024-04-12 075745

rpmcoding commented 3 months ago

Yep, was working fine in v2. Seems to be a new bug in v3.

knadh commented 3 months ago

Able to replicate this issue on the 3.0.0 demo. https://demo.listmonk.app/admin/campaigns/analytics?id=2

This is confirmed as a bug. Don't know how I missed this, darn! Will add a frontend testcase for this also.

lencell commented 1 month ago

Hello, is there any way to fix this, even as a temporary workaround ? I can confirm this occur on freshly upgraded version 3.0.0

JustAnotherEmployee commented 1 month ago

Hi there, Is there any update on this issue?