[Openid-specs-ab] Issue #187: AttributeError:'NoneType' object has no attribute 'status_code' (openid/certification)

Hasanthi Dissanyake issues-reply at bitbucket.org
Sat Jul 16 09:53:02 UTC 2016


New issue 187: AttributeError:'NoneType' object has no attribute 'status_code'
https://bitbucket.org/openid/certification/issues/187/attributeerror-nonetype-object-has-no

Hasanthi Dissanyake:

When I'm running the test case 'OP-Response-Missing' I got following error.

Test output


__AuthorizationRequest:pre__
[check-response-type]
	status: OK
	description: Checks that the asked for response type are among the supported
[check-endpoint]
	status: OK
	description: Checks that the necessary endpoint exists at a server
__After completing the test flow:__
[-]
	status: ERROR
	info: 'NoneType' object has no attribute 'status_code'






Trace output


2.567617 ------------ AuthorizationRequest ------------
2.568118 --> URL: https://203.94.95.215:9443/oauth2/authorize?scope=openid&state=NRjZm323e2nRrd0B&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60746%2Fauthz_cb&client_id=f3nrMOB1d2bXqfbLol6cQpyi8gca
2.568125 --> BODY: None
3.052426 <-- error_description=he+request+must+contain+the+%27response_type&state=NRjZm323e2nRrd0B&error=invalid_request
3.052816 AuthorizationErrorResponse: {
  "error": "invalid_request",
  "error_description": "he request must contain the 'response_type",
  "state": "NRjZm323e2nRrd0B"
}
3.053155 ==== END ====
3.080650 [ERROR] AttributeError:'NoneType' object has no attribute 'status_code'


What should be the reason for this. Should we send a status_code parameter with the error response?





More information about the Openid-specs-ab mailing list