[closed] Getting internal server error(500) while running some functions of rtc client in linux
Lakshman Rao Gude (11●1●2)
| asked Apr 06 '18, 9:17 a.m.
closed Mar 23 '23, 3:06 a.m. by Ralph Schoon (63.1k●3●36●46) mysavedquery = myallsavedqueries[85]
queried_wis = myquery.runSavedQuery(mysavedquery,returned_properties=returned_prop)
At runSavedQuery its throwing the error.
Can some one suggest me how to overcome the error
|
The question has been closed for the following reason: "Problem is not reproducible or outdated" by rschoon Mar 23 '23, 3:06 a.m.
4 answers
Can you please add basic info?
Comments
Lakshman Rao Gude
commented Apr 09 '18, 1:07 a.m.
rtcclient==0.6.0
I am unable to reply total things in this comment..Pls see below comments
|
Hi Ulf Arne Bister, rtcclient==0.6.0 I am executing the queries through python code. Its executing fine in the UI and in my local machine. But when i moved the same codebase to linux machine its giving 500 server error
logs:
Failed GET request at <https://elitealm.wipro.com:9443/ccm/oslc/queries?oslc_cm.pageSize=100&_resultToken=_iiJJ8DlQEeik2s_uAYzyYw&_startIndex=100> with response: <?xml version="1.0" encoding="UTF-8"?><oslc_cm:error xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
<oslc_cm:status>500</oslc_cm:status>
<oslc_cm:message>Query _iiJJ8DlQEeik2s_uAYzyYw expired.</oslc_cm:message>
</oslc_cm:error>
{
"end_user": "lakshman.gude@wipro.com",
"event": "HTTPError(u'500 Server Error: Internal Server Error for url: https://elitealm.wipro.com:9443/ccm/oslc/queries?oslc_cm.pageSize=100&_resultToken=_iiJJ8DlQEeik2s_uAYzyYw&_startIndex=100',)",
"file_name": "<string>",
"host": "chatbot_inst_3",
"level": "DEBUG",
"line": 40,
"service_user": "root",
"session_id": "Some Session_ID from channel",
"timestamp": "2018-04-06 04:11:21.052867 +0000",
"transaction_id": "UEAZ92"
}
Traceback (most recent call last):
File "<string>", line 22, in RSOBJ
File "/chatbot/ChatBot_Core/HolmesChatBot-Core/conf/external_pkgs/bugs_report_clm/business_interface/WorkItemDetailsBL.py", line 56, in show_total_defects
raise err
HTTPError: 500 Server Error: Internal Server Error for url: https://elitealm.wipro.com:9443/ccm/oslc/queries?oslc_cm.pageSize=100&_resultToken=_iiJJ8DlQEeik2s_uAYzyYw&_startIndex=100
|
please find the error also:
No handlers could be found for logger "client.RTCClient"
('connection established', <RTCClient RTC Server at https://elitealm.wipro.com:9443/ccm>)
Traceback (most recent call last):
File "kjh.py", line 100, in <module>
res = c_client.execute()
File "kjh.py", line 51, in execute
myallsavedqueries = myquery.getAllSavedQueries(projectarea_name=projectarea_name)
File "/usr/lib/python2.7/site-packages/rtcclient/query.py", line 122, in getAllSavedQueries
filter_rule=filter_rule))
File "/usr/lib/python2.7/site-packages/rtcclient/client.py", line 1404, in _get_paged_resources
headers=self.headers)
File "/usr/lib/python2.7/site-packages/rtcclient/utils.py", line 26, in wrapper
resp = func(args, *kwargs)
File "/usr/lib/python2.7/site-packages/rtcclient/base.py", line 83, in get
response.raise_for_status()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://elitealm.wipro.com:9443/ccm/oslc/queries?oslc_cm.pageSize=100&_resultToken=_i_NQgDutEeik2s_uAYzyYw&_startIndex=100
|
Hello Lakshman Rao Gude,
Sorry to disturb you but can you please tell me that how you resolved above exception.
I am really struggling too much to get rid of the same but not getting any solution .
If you help me then i will be very grateful to you.
Comments Please create y<our own question. This question is 5 years old and has questionable quality (at best). |