Rest: Error in log

I have found a script to add an on/off button in lovelace for google drive backup add-on using REST api. There is error in the log however. What am I missing?

Empty reply found when expecting JSON data

sensor.yaml

  - platform: rest
    resource: http://192.168.1.20:8123/api/hassio/addons/cebe7a76_hassio_google_drive_backup/info
    name: gdrivebackup
    value_template: '{{ value_json.data.state }}'
    scan_interval: 60
    headers:
      Authorization: '!secret token'
      Content-Type: application/json
    json_attributes_path: "$.data"
    json_attributes:
      - version
      - version_latest

Try removing the quotes around !secret token, as you have it now it passes it as a string and doesn’t look up zhe token in the secrets.yaml file.

Thanks! I have been searching for a few hours trying to figure out why.