rtcclient icon indicating copy to clipboard operation
rtcclient copied to clipboard

Problems with getProjectArea

Open krzeelzb opened this issue 7 years ago • 7 comments

Traceback (most recent call last): File "path", line 41, in <module> myclient.getProjectArea(projectarea_name, archived=False, returned_properties=None) File "path", line 183, in getProjectArea projectarea_name=projectarea_name) File "path", line 212, in _getProjectAreas filter_rule=filter_rule) File "path", line 1371, in _get_paged_resources entries = (raw_data.get("oslc_cm:Collection") AttributeError: 'NoneType' object has no attribute 'get'

Do you know what may be the cause of this problem, when I want to use : myclient = RTCClient(url, username, password,ends_with_jazz=True) myclient.getProjectArea(projectarea_name, archived=False, returned_properties=None)

krzeelzb avatar Aug 22 '18 10:08 krzeelzb

in _get_paged_resources entries = (raw_data.get("oslc_cm:Collection") AttributeError: 'NoneType' object has no attribute 'get'

Seems the raw_data here is none.

@krzeelzb Have you provided the right login info? It seems the client does not get the correct login token. And strangely it does not occur any error.

dixudx avatar Aug 22 '18 11:08 dixudx

Username and password, I am sure about. Could it be because of bad url?

krzeelzb avatar Aug 22 '18 11:08 krzeelzb

When I use different url, then I have different error: parser.Parse(xml_input, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line X, column Y

krzeelzb avatar Aug 22 '18 11:08 krzeelzb

Could it be because of bad url?

Yeah, probably. This url is not random. It normally is something like https://your_domain:9443/jazz.

dixudx avatar Aug 22 '18 11:08 dixudx

Ok, I changed url and still sth not working: raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='rtc.intel.com', port=9443): Max retries exceeded with url: /jazz/authenticated/identity (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0000000005E8FC88>: Failed to establish a new connection: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))

krzeelzb avatar Aug 22 '18 11:08 krzeelzb

@krzeelzb What does your url look like?

And please enable debug logging mode.

>>> from rtcclient import RTCClient
# you can remove this if you don't need logging
# default debug logging for console output
>>> setup_basic_logging()

dixudx avatar Aug 22 '18 11:08 dixudx

still the same problem:(

krzeelzb avatar Aug 22 '18 11:08 krzeelzb