Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST request to Veev Vault Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: [amgencdocs.veevavault.com] Connection timed out after 10001 milliseconds #666

Closed
AmGeorgeB opened this issue Jul 21, 2020 · 1 comment

Comments

@AmGeorgeB
Copy link

AmGeorgeB commented Jul 21, 2020

Relatively simple POST request to veeva vault is timing out after 10 seconds. Below is the cURL im trying to code up in R.
The Query is Veeva Vault Query language.

curl --location --request POST 'https://amgencdocs.veevavault.com/api/v20.1/query' \
--header 'Authorization: session_Id' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'q=SELECT id FROM documents'
POST_SESSION <- POST("http://amgencdocs.veevavault.com/api/v20.1/query",
                     add_headers("Authorization" = session_Id, 
                                 "Content-Type" = "application/x-www-form-urlencoded"),
                     body = ("q = SELECT id FROM documents"))
content(POST_SESSION)

The error im getting is:

POST request to Veev Vault Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: [amgencdocs.veevavault.com] Connection timed out after 10001 milliseconds

A post request to get the session_Id token works fine and so do various GET requests, so I'm not sure why this one is timing out, any help would be appreciated.

@hadley
Copy link
Member

hadley commented Oct 31, 2023

This is likely to be a problem specific to your API sorry, and apologies for taking so long to get back to you.

@hadley hadley closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants