graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #06900
[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 "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py", line 51, in renderView
(graphOptions, requestOptions) = parseOptions(request)
File "/opt/graphite/webapp/graphite/render/views.py", line 261, in parseOptions
untilTime = parseATTime(queryParams['until'], tzinfo)
File "/opt/graphite/webapp/graphite/render/attime.py", line 38, in parseATTime
return datetime.strptime(s,'%H:%M%Y%m%d').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.