← Back to team overview

graphite-dev team mailing list archive

[Question #689931]: Error 'AttributeError: _strptime' while fetching data from Graphite.

 

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

I am getting the following error when trying to get data from graphite database by using the following URL.

URL => /render?target=basic_perf.default.raghav7.load.1min&target=basic_perf.default.raghav7.load.5min&target=basic_perf.default.raghav7.load.15min&from=15:23_20200414&until=17:23_20200414&format=json 

I have used python's request API to fetch data from graphite using the above URL.

Status: 500 Response: <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.7/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/render/views.py&quot;, line 51, in renderView
    (graphOptions, requestOptions) = parseOptions(request)
  File &quot;/opt/graphite/webapp/graphite/render/views.py&quot;, line 261, in parseOptions
    untilTime = parseATTime(queryParams[&#39;until&#39;], tzinfo)
  File &quot;/opt/graphite/webapp/graphite/render/attime.py&quot;, line 38, in parseATTime
    return datetime.strptime(s,&#39;%H:%M%Y%m%d&#39;).replace(tzinfo=tzinfo)
AttributeError: _strptime</pre>
</div></center>

What could be the reason to get the above issue? any workaround to resolve this issue?

Thanks in advance.

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.