Support Questions
Find answers, ask questions, and share your expertise

About AMBARI POST method using python Pycurl to restart the services

Expert Contributor
2 REPLIES 2

@Venkata Sudheer Kumar M

Have you tried printing out the JSON the Python script is pushing to the API to validate it's correct? Then take that printed output and try pushing it to the API using curl. That will eliminate the JSON as the problem.

Expert Contributor
@Michael Young

Thanks a lot for your response, we have tried that but it is still the same, i.e. the CURL command from CLI and also from python using: os.system works but not from the pycurl POST command.