Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Uncaught TypeError #242

Closed
liamstears opened this issue Jul 29, 2020 · 6 comments
Closed

Uncaught TypeError #242

liamstears opened this issue Jul 29, 2020 · 6 comments
Labels
Bug Something isn't working

Comments

@liamstears
Copy link

liamstears commented Jul 29, 2020

Getting an error in my logs that I hope can be resolved, I am new to HassOS so hope this isn't just user error

The error I'm getting is:
/hacsfiles/custom-header/custom-header.js:1:12929 Uncaught TypeError: Cannot read property 'hass' of null

Here is my header config:

custom_header:
  compact_mode: true
  disable_sidebar: true
  exceptions:
    - conditions:
        user: Liam
      config:
        chevrons: false
        compact_mode: false
        disable_sidebar: false
        hidden_tab_redirect: false
        hide_ch_settings: false
        hide_config: false
        hide_help: false
        hide_raw: false
        hide_unused: false
        menu_hide: false
        options_hide: false
        shadow: false
        voice_hide: false
  hide_ch_settings: true
  hide_config: true
  hide_help: true
  hide_raw: true
  hide_unused: true
  menu_hide: true
  options_hide: true
  voice_hide: true

I'm running HassOS on a Pi4, 0.113.2 and installed 1.6.7 via HACS

I hope I have given all the information you need and hope you can help

@liamstears liamstears added the Bug Something isn't working label Jul 29, 2020
@github-actions
Copy link

Important:

Issues that don't provide the necessary information listed below may not get a reply and will be closed until the info is provided.

Release is the current version of Custom Header. Be sure that you are using the latest version by checking your browser's dev tools console (usually found by pressing F12). If this doesn't display the current version either clear your cache or reinstall.

If you haven't yet done so, please read the "Before Posting an Issue" section of the docs site.

Include as much of the following info as you can to help me replicate and investigate your issue:

  • A copy/paste of your Custom Header config (found in "Raw Config Editor" or ui-lovelace.yaml).
    Use the tip at the end of this post to format it correctly.
  • Any errors relevant to Custom Header found in the HA logs
  • Any relevant errors found in your browsers dev console (F12)
  • The version of Home Assistant and Custom Header you are using
  • The browsers or apps that are affected (i.e. Firefox, Chrome, Chrome Mobile, iOS HA Companion app, etc.)
  • Installation method (HACS or manual)

When pasting in your config always place 3 backticks ``` above the first line of your config and after the last line. Doing this will format it correctly so that I may find any formatting errors in your config.

@KTibow
Copy link

KTibow commented Jul 30, 2020

I'm getting this error in the browser console too. It happens when you load the page, and the current page isn't a dashboard.

@pollinolas
Copy link

Logger: frontend.js.latest.202007160
Source: components/system_log/init.py:209
First occurred: 11:39:01 (1 occurrences)
Last logged: 11:39:01

http://192.168.1.2:8123/hacsfiles/custom-header/custom-header.js:1:12929 Uncaught TypeError: Cannot read property 'hass' of null

I have the error when custom header is not loaded in the frontend

@skynet01
Copy link

skynet01 commented Aug 3, 2020

Same here started to show up recently

@maykar
Copy link
Owner

maykar commented Aug 6, 2020

Please try the latest release (1.6.8) and report back.

@liamstears
Copy link
Author

I've updated to 1.6.8 and will monitor over the next 24 hours 👍🏻

@maykar maykar closed this as completed Aug 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants