Closed eve-git closed 1 year ago
Got an error when trying to refund invoice_id=2737031 (https://github.com/bcgov-registries/ops-support/issues/2849)
The error in pay-api log is as:
2023-07-04 16:59:03,753 - pay_api - INFO in oauth_service:oauth_service.py:94 - __log_response: response : {} 2023-07-04 16:59:05,851 - pay_api - ERROR in oauth_service:oauth_service.py:76 - post: HTTPError on POST with status code 2023-07-04 16:59:05,852 - pay_api - INFO in oauth_service:oauth_service.py:90 - __log_response: Response Headers {'Date': 'Tue, 04 Jul 2023 16:58:41 GMT', 'Server': 'Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Content-Type': 'application/json', 'Expires': '0', 'X-Frame-Options': 'DENY', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'Strict-Transport-Security': 'max-age=31536000 ; includeSubDomains', 'Set-Cookie': 'BIGipServer~rd200-edge1~cfs-payweblogic.cas.gov.bc.ca_8637=rd200o00000000000000000000ffff8e22a6cfo8637; path=/; Httponly; Secure', 'Connection': 'close', 'Transfer-Encoding': 'chunked'} 2023-07-04 16:59:05,853 - pay_api - INFO in oauth_service:oauth_service.py:94 - __log_response: response : 2023-07-04 16:59:05,853 - pay_api - ERROR in app:app.py:1891 - log_exception: Exception on /api/v1/payment-requests/2737031/refunds [POST] Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python3.8/site-packages/flask_restx/api.py", line 404, in wrapper resp = resource(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 89, in view return self.dispatch_request(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/flask_restx/resource.py", line 46, in dispatch_request resp = meth(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/flask_restx/cors.py", line 42, in wrapped_function resp = make_response(f(*args, **kwargs)) File "/usr/local/lib/python3.8/site-packages/flask_jwt_oidc/jwt_manager.py", line 224, in wrapper return f(*args, **kwargs) File "/opt/app-root/src/pay_api/resources/refund.py", line 48, in post response = RefundService.create_refund(invoice_id, request_json) File "/opt/app-root/src/pay_api/utils/user_context.py", line 133, in wrapper return function(*func_args, **func_kwargs) File "/opt/app-root/src/pay_api/services/refund.py", line 269, in create_refund invoice_status = pay_system_service.process_cfs_refund(invoice) File "/opt/app-root/src/pay_api/services/direct_pay_service.py", line 155, in process_cfs_refund refund_response = self.post(refund_url, access_token, AuthHeaderType.BEARER, File "/opt/app-root/src/pay_api/services/oauth_service.py", line 80, in post raise exc File "/opt/app-root/src/pay_api/services/oauth_service.py", line 70, in post response.raise_for_status() File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: xxxx
@eve-git can you move this ticket to ops repo? If it's not the bug or feature changes.
It is not a bug. Closed the issue.
Got an error when trying to refund invoice_id=2737031 (https://github.com/bcgov-registries/ops-support/issues/2849)
The error in pay-api log is as: