External Api not returning any response

sshukla
New Contributor III

import requests

url = "https://example.com/api"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
}
Payload = json.dumps({json_data})

response = requests.post(url, headers=headers, data=Payload)

print(response.status_code)
print(response.text)

 

this is running for very long time

Same url is working for other payload 

could you please let me know why this is happening?