Hi @Pomi_Daniel, we’ve had the same error reported on 2.43 ([Bug] HTML Push Analytics Job fails with "Invalid dashhboard UID 'undefined'" in DHIS2 v2.43 (despite correct API configuration)), and there the cause was the keyHtmlPushAnalyticsUrl setting. I expect/hope it’s the same issue for you, since it’s an easy fix ![]()
That setting is a URL template, not just the address of the service. DHIS2 fills in the dashboard, user and locale each time the job runs. If it only holds the host and port, the service receives no dashboard ID, which gives the “undefined” error. For your setup it should look like:
http://<your-host>:3000/?dashboardId={id}&username={username}&locale={locale}
Type {id}, {username} and {locale} exactly like that, with the curly braces. DHIS2 replaces them with the dashboard from the job and each receiving user. Your manual curl test worked because you wrote out the full query string yourself. Could you update the setting, re-run the job and let us know? We’re also making the error message point to this setting and adding it to the push analytics documentation (pull request here fix: explain the keyHtmlPushAnalyticsUrl template when a request has no query parameters by karolinelien · Pull Request #96 · dhis2/push-analytics · GitHub)
Let us know if it works!
We would also be very interested in hearing your usecase for the push analytics functionality. Feel free to write about that here or send me a direct message/email (karoline@dhis2.org)
Thanks,
Karoline
DHIS2 Product Manager