# dhis2-cdn.org script resource query

**URL:** <https://community.dhis2.org/t/dhis2-cdn-org-script-resource-query/33980>\
**Category:** Support - Assistance technique\
**Created:** [30 May 2018 05:26 UTC](https://community.dhis2.org/t/dhis2-cdn-org-script-resource-query/33980 "2018-05-30T05:26:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/greg/32/44993_2.png) [@Greg](https://community.dhis2.org/u/Greg)\
**Post date:** [30 May 2018 05:26 UTC](https://community.dhis2.org/t/dhis2-cdn-org-script-resource-query/33980/1 "2018-05-30T05:26:27Z")

</div>

Hi Devs

We’ve embedded a chart using v2.28 but embedded script resource [//[dhis2-cdn.org/v228/plugin/chart.js](http://dhis2-cdn.org/v228/plugin/chart.js)] is giving us error 522 (origin connection timeout). I’ve noticed a hosting error to this path. Any suggestions or workarounds?

Kind Regards,

Greg

> **···**
>
> **Health Information Systems Program - South Africa**
> 
> \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
> 
> Mobile : 073 246 2992  
> Landline: 021 851 2216
> 
> Skype: gregory\_rowles

---

<div class="post-metadata">

**Author:** ![Pooben](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/p/a4c791/32.png) [@Pooben](https://community.dhis2.org/u/Pooben)\
**Post date:** [30 May 2018 05:35 UTC](https://community.dhis2.org/t/dhis2-cdn-org-script-resource-query/33980/2 "2018-05-30T05:35:00Z")

</div>

Hi Greg

You could reference the library from the dhis2 instance you are running.

Something like src=“…/dhis-web-visualizer/chart.js”\>

as the lib is in the visualizer app.

Kind regards

Pooben

_This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._

> **···**
>
> On Wed, May 30, 2018 at 7:26 AM, Greg Rowles [greg.rowles@gmail.com](mailto:greg.rowles@gmail.com) wrote:
> 
> > Hi Devs
> 
> > We’ve embedded a chart using v2.28 but embedded script resource [//[dhis2-cdn.org/v228/plugin/chart.js](http://dhis2-cdn.org/v228/plugin/chart.js)] is giving us error 522 (origin connection timeout). I’ve noticed a hosting error to this path. Any suggestions or workarounds?
> 
> > 
> 
> > Kind Regards,
> 
> > 
> 
> > **Health Information Systems Program - South Africa**
> 
> > \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
> 
> > Mobile : 073 246 2992  
> > Landline: 021 851 2216
> 
> > Skype: gregory\_rowles
> 
> > ## Greg
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)

---

<div class="post-metadata">

**Author:** ![Greg](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/greg/32/44993_2.png) [@Greg](https://community.dhis2.org/u/Greg)\
**Post date:** [30 May 2018 05:45 UTC](https://community.dhis2.org/t/dhis2-cdn-org-script-resource-query/33980/3 "2018-05-30T05:45:09Z")

</div>

Thanks Pooben, got it to work…

> **···**
>
> On Wed, May 30, 2018 at 7:35 AM, Pooben Dass [pooben@hisp.org](mailto:pooben@hisp.org) wrote:
> 
> > Hi Greg
> 
> > You could reference the library from the dhis2 instance you are running.
> 
> > 
> 
> > Something like src=“…/dhis-web-visualizer/chart.js”\>
> 
> > 
> 
> > as the lib is in the visualizer app.
> 
> > 
> 
> > Kind regards
> 
> > Pooben
> 
> > _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._
> 
> –
> 
> On Wed, May 30, 2018 at 7:26 AM, Greg Rowles [greg.rowles@gmail.com](mailto:greg.rowles@gmail.com) wrote:
> 
> > Hi Devs
> 
> > We’ve embedded a chart using v2.28 but embedded script resource [//[dhis2-cdn.org/v228/plugin/chart.js](http://dhis2-cdn.org/v228/plugin/chart.js)] is giving us error 522 (origin connection timeout). I’ve noticed a hosting error to this path. Any suggestions or workarounds?
> 
> > 
> 
> > Kind Regards,
> 
> > 
> 
> > **Health Information Systems Program - South Africa**
> 
> > \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
> 
> > Mobile : 073 246 2992  
> > Landline: 021 851 2216
> 
> > Skype: gregory\_rowles
> 
> > ## Greg
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> **Health Information Systems Program - South Africa**
> 
> \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
> 
> Mobile : 073 246 2992  
> Landline: 021 851 2216
> 
> Skype: gregory\_rowles

---

<div class="post-metadata">

**Author:** ![Greg](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/greg/32/44993_2.png) [@Greg](https://community.dhis2.org/u/Greg)\
**Post date:** [30 May 2018 11:25 UTC](https://community.dhis2.org/t/dhis2-cdn-org-script-resource-query/33980/4 "2018-05-30T11:25:08Z")

</div>

For the record it seem [dhis2-cdn.org](http://dhis2-cdn.org) is not working at all. I’ve just discovered an app that previously worked fine is also experiencing issues referencing files on that domain…

> **···**
>
> On Wed, May 30, 2018 at 7:45 AM, Greg Rowles [greg.rowles@gmail.com](mailto:greg.rowles@gmail.com) wrote:
> 
> > Thanks Pooben, got it to work…
> 
> –
> 
> On Wed, May 30, 2018 at 7:35 AM, Pooben Dass [pooben@hisp.org](mailto:pooben@hisp.org) wrote:
> 
> > Hi Greg
> 
> > You could reference the library from the dhis2 instance you are running.
> 
> > 
> 
> > Something like src=“…/dhis-web-visualizer/chart.js”\>
> 
> > 
> 
> > as the lib is in the visualizer app.
> 
> > 
> 
> > Kind regards
> 
> > Pooben
> 
> > _This message and any attachments are subject to a disclaimer published at [http://www.hisp.org/policies.html#comms\_disclaimer](http://www.hisp.org/policies.html#comms_disclaimer). Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to [disclaimer@hisp.org](mailto:disclaimer@hisp.org) and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer._
> 
> –  
> **Health Information Systems Program - South Africa**
> 
> \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
> 
> Mobile : 073 246 2992  
> Landline: 021 851 2216
> 
> Skype: gregory\_rowles
> 
> On Wed, May 30, 2018 at 7:26 AM, Greg Rowles [greg.rowles@gmail.com](mailto:greg.rowles@gmail.com) wrote:
> 
> > Hi Devs
> 
> > We’ve embedded a chart using v2.28 but embedded script resource [//[dhis2-cdn.org/v228/plugin/chart.js](http://dhis2-cdn.org/v228/plugin/chart.js)] is giving us error 522 (origin connection timeout). I’ve noticed a hosting error to this path. Any suggestions or workarounds?
> 
> > 
> 
> > Kind Regards,
> 
> > 
> 
> > **Health Information Systems Program - South Africa**
> 
> > \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
> 
> > Mobile : 073 246 2992  
> > Landline: 021 851 2216
> 
> > Skype: gregory\_rowles
> 
> > ## Greg
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
> 
> **Health Information Systems Program - South Africa**
> 
> \*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - - - \*\*\*\*- - - - - \*\*
