How to access API response , message and status code

I am trying to run a simple public api https://catfact.ninja/fact but on Api Done : lasterror message and response are empty and status is 0

Page Code : 
<body is="dmx-app" id="index">

    <dmx-session-manager id="session"></dmx-session-manager>

    <dmx-api-action id="api1" noload="true" url="https://catfact.ninja/fact" 
dmx-on:done="run([{run:{action:`session.set(\'debug5\',\'Done\')`}},
{alert:{message:`api1.lastError.status+\'+\'
+api1.lastError.message+\'+\'+api1.lastError.response`}}])">
</dmx-api-action>

    <header>
      

        <button id="btn1" class="btn" dmx-on:click="api1.load()">Button</button>

    </header> 

The alert says 0++ so the API Done event is firing but why is the status 0 and why is the message and response empty? I am using App Connect (static site- no server) Thanks

Community Page
Last updated: