← Back to team overview

graphite-dev team mailing list archive

[Question #241912]: Graphite events not working

 

New question #241912 on Graphite:
https://answers.launchpad.net/graphite/+question/241912

I'm trying to post events to Graphite using curl but I get the following error message. I'd appreciate some help.

curl -X POST http://localhost/events/ -d '{"what": "Event through curl", "tags": "curl"}'

<body style="background-color: #666666; color: black;">
<center>
<h2 style='font-family: "Arial"'>
<p>Graphite encountered an unexpected error while handling your request.</p>
<p>Please contact your site administrator if the problem persists.</p>
</h2>
<br/>
<div style="width: 50%; text-align: center; font-family: monospace; background-color: black; font-weight: bold; color: #ff4422;">

</div>

<div style="width: 70%; text-align: left; background-color: black; color: #44ff22; border: thin solid gray;">
<pre>
Traceback (most recent call last):
  File &quot;/usr/lib/python2.6/site-packages/django/core/handlers/base.py&quot;, line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File &quot;/opt/graphite/webapp/graphite/events/views.py&quot;, line 32, in view_events
    return post_event(request)
  File &quot;/opt/graphite/webapp/graphite/events/views.py&quot;, line 44, in post_event
    event = json.loads(request.raw_post_data)
AttributeError: &#39;WSGIRequest&#39; object has no attribute &#39;raw_post_data&#39;

</pre>
</div>

</center>

Thanks!

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.