It's all about the answers!

Ask a question

[closed] Getting internal server error(500) while running some functions of rtc client in linux


Lakshman Rao Gude (1112) | asked Apr 06 '18, 9:17 a.m.
closed Mar 23 '23, 3:06 a.m. by Ralph Schoon (63.1k33646)

             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



permanent link
Ulf Arne Bister (1.3k413) | answered Apr 08 '18, 2:58 a.m.

 Can you please add basic info?
What RTC version are you running? What client version? What is the server's version? In what context are you programmatically executing this query (Java executing in your RTC Client on Linux?). Does this particular query execute ok in the UI?
That said an HTTP 500 server error is a very generic response. It can be due to certificate error, database unavailable, etc. You will need to dig in the application / eclipse log files for more information and share.

- Arne


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


permanent link
Lakshman Rao Gude (1112) | answered Apr 09 '18, 12:01 a.m.

 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", 
 "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


permanent link
Lakshman Rao Gude (1112) | answered Apr 09 '18, 12:25 a.m.

 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


permanent link
Akash Kaanholkar (153) | answered Mar 23 '23, 1:32 a.m.

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
Ralph Schoon commented Mar 23 '23, 3:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please create y<our own question. This question is 5 years old and has questionable quality (at best).