Facing problem in getting Token from oauth authorize & get token method

I am referring documentation Frappe Framework: Open Source Low Code Framework to get Token

Steps I have followed as below

Setup OAuth 2 Provider (I have checked skip authorization)

GET /api/method/frappe.integrations.oauth2.authorize

Token Exchange for Authorization Code Grant with ID Token

On hitting /api/method/frappe.integrations.oauth2.authorize method, I am getting following error

{“exception”:“AttributeError: ‘NoneType’ object has no attribute ‘split’”,“exc”:“["Traceback (most recent call last):\n File \"apps/frappe/frappe/app.py\", line 69, in application\n response = frappe.api.handle()\n File \"apps/frappe/frappe/api.py\", line 55, in handle\n return frappe.handler.handle()\n File \"apps/frappe/frappe/handler.py\", line 38, in handle\n data = execute_cmd(cmd)\n File \"apps/frappe/frappe/handler.py\", line 76, in execute_cmd\n return frappe.call(method, **frappe.form_dict)\n File \"apps/frappe/frappe/init.py\", line 1457, in call\n return fn(*args, **newargs)\n File \"apps/frappe/frappe/integrations/oauth2.py\", line 89, in authorize\n (scopes, frappe.flags.oauth_credentials,) = get_oauth_server().validate_authorization_request(\n File \"env/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/endpoints/base.py\", line 112, in wrapper\n return f(endpoint, uri, *args, **kwargs)\n File \"env/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/endpoints/authorization.py\", line 114, in validate_authorization_request\n return response_type_handler.validate_authorization_request(request)\n File \"env/lib/python3.8/site-packages/oauthlib/openid/connect/core/grant_types/dispatchers.py\", line 37, in validate_authorization_request\n return self._handler_for_request(request).validate_authorization_request(request)\n File \"env/lib/python3.8/site-packages/oauthlib/openid/connect/core/grant_types/base.py\", line 35, in validate_authorization_request\n return self.proxy_target.validate_authorization_request(request)\n File \"env/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py\", line 364, in validate_authorization_request\n self._handle_redirects(request)\n File \"env/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/grant_types/base.py\", line 239, in _handle_redirects\n if not self.request_validator.validate_redirect_uri(\n File \"apps/frappe/frappe/oauth.py\", line 32, in validate_redirect_uri\n redirect_uris = frappe.db.get_value(\"OAuth Client\", client_id, \"redirect_uris\").split(\nAttributeError: ‘NoneType’ object has no attribute ‘split’\n"]”}