Configure Google Service Account on DHIS 2.21

Hello,

I am trying to add a Google service account configuration to DHIS
2.21. I created a service account and activated most of the maps API
from Google API console. Then, I put the service account credentials
inside DHIS2_CONF/config folder with filename dhis-google-auth.json .
But it's not working. The DHIS2 GIS app logs errors like:

"Google Maps API warning: NoApiKeys
Error Messages  |  Maps JavaScript API  |  Google for Developers;
util.js:220:12
"Google Maps API warning: RetiredVersion
Pesan Error  |  Maps JavaScript API  |  Google for Developers;
"Google Maps API error: Google Maps API error: MissingKeyMapError
Error Messages  |  Maps JavaScript API  |  Google for Developers;

Please help.

Regards,
Aatish Neupane

Hi Aatish,

The Google Service API support has been introduced in version 2.24 (docs) and is not available for 2.21.

Regards,

David

···

On Tue, Jul 19, 2016 at 5:16 PM, Aatish Neupane aatishnn@gmail.com wrote:

Hello,

I am trying to add a Google service account configuration to DHIS

2.21. I created a service account and activated most of the maps API

from Google API console. Then, I put the service account credentials

inside DHIS2_CONF/config folder with filename dhis-google-auth.json .

But it’s not working. The DHIS2 GIS app logs errors like:

"Google Maps API warning: NoApiKeys

https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys"

util.js:220:12

"Google Maps API warning: RetiredVersion

https://developers.google.com/maps/documentation/javascript/error-messages#retired-version"

"Google Maps API error: Google Maps API error: MissingKeyMapError

https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error"

Please help.

Regards,

Aatish Neupane


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

David Huser
DHIS2 Support Specialist

dhuser@baosystems.com | https://baosystems.com | Skype: dafhus | 2900 K Street, Suite 404, Washington D.C. 20007

Thank you very much David.

···

On Tue, Jul 19, 2016 at 11:30 PM, David Huser dhuser@baosystems.com wrote:

Hi Aatish,

The Google Service API support has been introduced in version 2.24 (docs) and is not available for 2.21.

Regards,

David

Regards,
Aatish Neupane

On Tue, Jul 19, 2016 at 5:16 PM, Aatish Neupane aatishnn@gmail.com wrote:

Hello,

I am trying to add a Google service account configuration to DHIS

2.21. I created a service account and activated most of the maps API

from Google API console. Then, I put the service account credentials

inside DHIS2_CONF/config folder with filename dhis-google-auth.json .

But it’s not working. The DHIS2 GIS app logs errors like:

"Google Maps API warning: NoApiKeys

https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys"

util.js:220:12

"Google Maps API warning: RetiredVersion

https://developers.google.com/maps/documentation/javascript/error-messages#retired-version"

"Google Maps API error: Google Maps API error: MissingKeyMapError

https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error"

Please help.

Regards,

Aatish Neupane


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

David Huser
DHIS2 Support Specialist

dhuser@baosystems.com | https://baosystems.com | Skype: dafhus | 2900 K Street, Suite 404, Washington D.C. 20007