I've got a model C-8 Pro. Im currently developing an APP that needs to store the Java code on the file manager. The application is trying to access it but I keep getting a Family Pulse: BLOCKED. Hub returned Login Page for 'FamilyPulse_Logic.js'.
How do I turn this off?
Java or JavaScript? And where are you seeing this error? Do you have hub login security enabled? From where and how are you trying to access the file? Is this "app" an app on your hub (as Apps Code) or something else?
More information, including this, would be helpful to share so others can get a better idea of what's happening.
My app's JavaScript file and CSS became too large to house inside the app itself. So I've had to offload the JavaScript and CSS data to its own file's stores on the Hubitat File Manager. Currently when I try to load the app I get hit with this error code inside my hub logs and the app isn't rendering correctly.
Family Pulse: BLOCKED. Hub returned Login Page for 'FamilyPulse_Logic.js'.
If you didn't set up hub login security, it is off.
There is no API to remotely access File Manager files. I'm still not sure exactly what you're doing or where the error occurs (or where to see it -- what do you mean with "data logs"?). I'd suggest sharing a minimal example someone else can run that
demonstrates your problem, if nothing else.
I'm connecting to the app through the cloud API option you can use in habitat. I'm working on a family application that allows communication. I don't want to spill too many secrets as I want to release it to the community in the near future. BUT when i was designing the application, the JavaScript hit the maximum limit that Hubitat allows. So I took that JavaScript saved it as a file with a header, and now the APP calls for that file through file manager.
Unfortunately every time I try to access the link to the app local or remote. I get this error code in the hub logs "Family Pulse: BLOCKED. Hub returned Login Page for 'FamilyPulse_Logic.js'."
Updated with better information.
Not sure what you mean by the JavaScript hit the maximum limit that Hubitat allows (maximum code size??) but an excerpt from one of my apps that sounds like it may be doing something similar:
String visualRep = """<div id='container${i}' style='padding:0;position:relative;margin:0;height:vh;width:vw;border:inset;border-radius:15px;background-color:#80b3ff'>
<p id='cTitle${i}' style='text-align:center;font-weight:bold;margin:0;padding:0;font-size:10px;height:12px'></p>
<canvas id="myChart${i}"></canvas>
<p id='cValue${i}' style='text-align:center;font-weight:bold;margin:0;padding:0;font-size:8px,height:10px'></p>
</div>
<script>
${insertJS()}
</script>
..."""
String insertJS(){
return """${new String(downloadHubFile('fileToInsert.js'))}"""
}
3 Likes