"UDAPI100058" getting following error in python google colab while fetching access token key

this is only code i have with me . i am running below code on google colab. i am using in my own browser and getting code from there and then using it on script running on google colab

import requests
import pandas as pd
import urllib.parse

apikey = "***************************"
secrete_key = "***********"
redirect_url = ""
url =f"https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id={apikey}&redirect_uri={redirect_url}"
code = input("input code")

#accest token


rurl = urllib.parse.quote(redirect_url,safe = "")

url = "https://api.upstox.com/v2/login/authorization/token"
data ={"code": code,
      "client_id" : apikey,
      "client_secret": secrete_key,
      "redirect_uri": redirect_url,
      "grant_type": "authorization_code"}
headers = {"Content-Type" : "application/x-www-form-urlencoded",

response = requests.request("POST", url, headers=headers, data=data)


I am getting following error

{"status":"error","errors":[{"errorCode":"UDAPI100058","message":"No segments for these users are active. Manual reactivation is recommended from Upstox app/web.","propertyPath":null,"invalidValue":null,"error_code":"UDAPI100058","property_path":null,"invalid_value":null}]}

please help me to solve issue

The message clearly indicates that the Client Id you are attempting to access lacks any active segments. To proceed, you must activate the segment. For guidance on how to enable the segment in your account, please refer to the documentation available at: Process/Status of Segment Activation - Upstox Help Center.