Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

             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
 

0 votes


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

 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

0 votes

Comments

 rtcclient==0.6.0

 I am unable to reply total things in this comment..Pls see below comments


Permanent link

 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

0 votes


Permanent link

 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

0 votes


Permanent link

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.

0 votes

Comments

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939
× 1,700

Question asked: Apr 06 '18, 9:17 a.m.

Question was seen: 4,077 times

Last updated: Mar 23 '23, 3:06 a.m.

Confirmation Cancel Confirm