Publishing a page with a widget

Publishing a page with a widget

Hey all,

I need some help with publishing a Creator page with a widget embedded (in the regular way, not as a snippet). The widget itself appears, but it can't access the record inside a report (which works when the app components are not published). I am getting this error:


{
    "status": 401,
    "statusText": "error",
    "responseText": "{\"code\":1030,\"description\":\"Authorization Failure. The access token is either invalid or has expired. Please check your Zoho Account for more information.\"}"
}
I am using the getRecordById jsapi method.

Has anyone managed to use widgets within a published page?

Thank you in advance!