Access graphql endpoint from AWS

I am trying to access the endpoint - https://api.refinitiv.com/data-store/v1/graphql from AWS cloud environment and facing time out error. Although I am able to access another route to get the bearer token successfully. Could someone pls help me on the same?

Tagged:

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @ajitharani.nallathambiganesan

    Thank you for reaching out to us.

    I am not sure if it is a connection timeout or HTTP request timeout.

    You can use the curl or wget command to verify the connection.

    curl -v  https://api.refinitiv.com/data-store/v1/graphql
    wget https://api.refinitiv.com/data-store/v1/graphql
    

    You should see the 405: Method Not Allowed.

    If this is a connection timeout, it may relate to the network settings. If this is an HTTP request timeout, you may need to create the value of the HTTP request timeout. The settings depend on the library that you are using.

    In the LSEG Data Library for Python, you can set the HTTP request timeout via the configuration.

    {    
    …
        "http": {
            "request-timeout": 6000
      },
    …
    }
    
  • Thanks for the response. I am using python script for this exercise. The same script is working from my machine. But facing issue for the graphql alone from AWS.

    https://api.refinitiv.com/auth/oauth2/v1/token - this works from AWS, which I understand that network settings are good.

    https://api.refinitiv.com/data-store/v1/graphql - Timeout error.

    Could you pls guide me on this?

  • Hello @ajitharani.nallathambiganesan

    Can you try to run the curl and wget commands above from your AWS to test a connection between your AWS instance to the GraphQL service?