Error in curl::curl_fetch_memory(url, handle = handle) :

While extracting TRTH data with REST API in R but got stuck in the last step to download completed extraction. I have followed the API reference tree to Extraction - ExtractedFile - GetDefaultStream. However, R gives me error message that:

Error in curl::curl_fetch_memory(url, handle = handle) :
Failed writing received data to disk/application.

I can't find anything helpful online about this issue with R. I remember that Refintiv has a tutorial on using REST API with R, so I am wondering if you have any suggestion on how to extract data with R.



I saw

Best Answer

Answers

  • Hello @Prathibha.Mariyappa,

    You are not mentioning if you are able to extract other TRTH content successfully, and only have difficulty with this specific request, or you have not been able to retrieve any results.

    I am not familiar with R tutorial.

    To make sure that you are able to go through the steps that are required to retrieve from TRTH successfully:

    1. Submit the request

    2. Check the status of the job until the job is completed

    3. Get the result

    I would run one of the TRTH Postman tutorials, and once that is successfull, next , would replace the request in the tutorial with the one you are requiring. Once the request is successful in Postman, then one can move it into any code, including R.

    Hope this helps