Variables no longer work on my Grafana dashboard (error updating options: undefined is not an object (evaluating 'e.fields'))

  • What Grafana version and what operating system are you using?
    Grafan v9.3.2 (21c1d14e91)
    Ubuntu 22.04.1 LTS

  • What are you trying to achieve?
    I want to use a variable in my queries.

  • How are you trying to achieve it?
    I am using GitHub as a datasource and I am trying to retrieve labels from a GitHub repo. This worked previously but suddenly stopped working. I updated the docker grafana image but this did not solve the problem.

  • What happened?
    The dropdown lists in my dashboards for the variables I’ve created are now empty.

  • What did you expect to happen?
    I expect these dropdown lists to be populated with the GitHub labels that match my regex.

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    Docker container logs
    logger=context userId=0 orgId=0 uname= t=2023-01-04T16:28:01.969982674Z level=warn msg=“Received invalid referer in request headers, removed for log forgery prevention”

  • Did you follow any online instructions? If so, what is the URL?

What datasourxe are you querying to get your variable list? Github?

What query language?

Hi @yosiasz. Yes I’m querying Github for a list of labels in a repo and then I want to use these variables to query a mysql database.

What happens if you ran that exact query outside of grafana?

It works fine. I get the list of labels in the repo.

If I can provide you with any more information let me know!

wonder if your token has expired? working for me

yes you’re right, that was it, thank you very much!

1 Like