# Graphite interface not working

**URL:** <https://community.openenergymonitor.org/t/graphite-interface-not-working/7796>\
**Category:** Emoncms\
**Created:** [1 July 2018 21:33 UTC](https://community.openenergymonitor.org/t/graphite-interface-not-working/7796 "2018-07-01T21:33:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robbrad](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robbrad/32/7150_2.png) [@Robbrad](https://community.openenergymonitor.org/u/Robbrad)\
**Post date:** [1 July 2018 21:33 UTC](https://community.openenergymonitor.org/t/graphite-interface-not-working/7796/1 "2018-07-01T21:33:20Z")

</div>

Hi guys

I just setup graphite - but im getting an error in the emonhub log file

```
2018-07-01 22:24:07,148 WARNING Graphite Exception caught in Graphite thread. Traceback (most recent call last):
  File "/home/pi/emonhub/src/emonhub_interfacer.py", line 40, in wrapper
return f(*args)
  File "/home/pi/emonhub/src/emonhub_interfacer.py", line 128, in run
self.action()
  File "/home/pi/emonhub/src/emonhub_interfacer.py", line 198, in action
self.flush()
  File "/home/pi/emonhub/src/emonhub_interfacer.py", line 216, in flush
if self._process_post(databuffer):
  File "/home/pi/emonhub/src/interfacers/EmonHubGraphiteInterfacer.py", line 69, in _process_post
timestamp = frame['timestamp']
KeyError: 'timestamp'

```

I have tested posting to to the graphite db from bash and that works fine, but no data is inserted from the interfacer

Does anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![Robbrad](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robbrad/32/7150_2.png) [@Robbrad](https://community.openenergymonitor.org/u/Robbrad)\
**Post date:** [2 July 2018 12:10 UTC](https://community.openenergymonitor.org/t/graphite-interface-not-working/7796/2 "2018-07-02T12:10:42Z")

</div>

Bit more info.

If I hard code the timestamp value in the py script it works.

I’ll raise an issue on git hub

---

<div class="post-metadata">

**Author:** ![Robbrad](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robbrad/32/7150_2.png) [@Robbrad](https://community.openenergymonitor.org/u/Robbrad)\
**Post date:** [2 July 2018 14:40 UTC](https://community.openenergymonitor.org/t/graphite-interface-not-working/7796/3 "2018-07-02T14:40:53Z")

</div>

> [@Robbrad](#):
>
> `2018-07-01 22:24:07,148 WARNING Graphite Exception caught in Graphite thread. Traceback (most recent call last): File "/home/pi/emonhub/src/emonhub_interfacer.py", line 40, in wrapper return f(*args) File "/home/pi/emonhub/src/emonhub_interfacer.py", line 128, in run self.action() File "/home/pi/emonhub/src/emonhub_interfacer.py", line 198, in action self.flush() File "/home/pi/emonhub/src/emonhub_interfacer.py", line 216, in flush if self._process_post(databuffer): File "/home/pi/emonhub/src/interfacers/EmonHubGraphiteInterfacer.py", line 69, in _process_post timestamp = frame['timestamp'] KeyError: 'timestamp'`

Issue raised with fix [EmonHubGraphiteInterfacer.py is not submitting data · Issue #65 · openenergymonitor/emonhub · GitHub](https://github.com/openenergymonitor/emonhub/issues/65)

_Edit - reformatted text for readability. Moderator, BT_
