Graphql requests returning 429, but working fine when using http.client or when running curl in terminal

Graphql requests returning 429, but working fine when using http.client or when running curl in terminal


0

Using below requests returns 429 status code, but when same request is used in curl, and by using Python http.client library, i get 200 status code and data.

What can be issue where requests gives 429 but I get data through other clients and in curl

            url="www.xyz.co.in/graphql",
            headers={
                "User-Agent": "CFNetwork/1485 Darwin/23.1.0",
                "Client-Info": "ios.com.expedia.booking,2023.45,external",
                "Content-Type": "application/json",
            },
            data=json.dumps({
                "query": query,
                "variables": variables
            })
        ) ```



Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *