# Second newbie here, Tibber question

**URL:** <https://discourse.nodered.org/t/second-newbie-here-tibber-question/66722>\
**Category:** Dashboard\
**Created:** [21 August 2022 11:42 UTC](https://discourse.nodered.org/t/second-newbie-here-tibber-question/66722 "2022-08-21T11:42:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gubbfett](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gubbfett/32/66602_2.png) [@gubbfett](https://discourse.nodered.org/u/gubbfett)\
**Post date:** [21 August 2022 11:42 UTC](https://discourse.nodered.org/t/second-newbie-here-tibber-question/66722/1 "2022-08-21T11:42:50Z")

</div>

Hi,

So, I'm struggling with the node-red-contrib-tibber-api module. I can get the "Tibber feed" node to work, but no else.

I found [this thread](https://discourse.nodered.org/t/newbie-here-tibber-question/) that was very interesting and helpful, but also a quite frustrating since i can't get it to work. Business as usual i suppose.

I "stole" this from the thread above:

```auto
[{"id":"be4d9e2e.b5f52","type":"tibber-query","z":"2795b53e.b26e3a","name":"","active":true,"apiEndpointRef":"7fb06f58.101d9","x":190,"y":180,"wires":[["6b5798cf.c411c8"]]},{"id":"d8090c2c.45052","type":"inject","z":"2795b53e.b26e3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":60,"wires":[["baf7c521.66c7c8"]]},{"id":"6b5798cf.c411c8","type":"debug","z":"2795b53e.b26e3a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":350,"y":180,"wires":[]},{"id":"baf7c521.66c7c8","type":"template","z":"2795b53e.b26e3a","name":"current prices query","field":"payload","fieldType":"msg","format":"text","syntax":"plain","template":"{\n viewer {\n homes {\n currentSubscription{\n priceInfo{\n current{\n total\n energy\n tax\n startsAt\n }\n }\n }\n }\n }\n}","output":"str","x":160,"y":120,"wires":[["be4d9e2e.b5f52"]]},{"id":"7fb06f58.101d9","type":"tibber-api-endpoint","z":"","feedUrl":"wss://api.tibber.com/v1-beta/gql/subscriptions","queryUrl":"https://api.tibber.com/v1-beta/gql","name":""}]

```

...and no matter what i do, i get the error `"TypeError: The first argument must be one of type string or Buffer. Received type object"` on the tibber query module. I have tried with a .toString() function etc on the msg.payload but still no cigar.

(Edit: you must provide an apiToken, not included)  
(Edit2: Ok, i can get it to give me other errors by setting the template output to other stuff than plain text. I have also tried to send this string from the injector - but still same result).

Anyone here that can guide me in the correct direction?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bc4b14ebad3f79c0ad836e42082105b372fc5ebc.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/9/29368e68b51bca46264108c4b56faef19039a9d3.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 September 2022 22:10 UTC](https://discourse.nodered.org/t/second-newbie-here-tibber-question/66722/3 "2022-09-20T22:10:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
