Error uploading to Rpubs. Error in curl::curl_fetch_memory(url, handle = handle) : Failure when receiving data from the peer

I created an R markdown document with various leaflet maps that have rasters in them.
The html file weights about 26mb, when I try to upload it to Rpubs I get the error:

Error in curl::curl_fetch_memory(url, handle = handle) : 
  Failure when receiving data from the peer
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0.05 0.04 85.86
Execution halted

It seems the same problem raised here https://forum.posit.co/t/rpubs-error-in-curl-curl-fetch-memory-url-handle-handle-failure-when-receiving-data-from-the-peer/77323

I already tried simplifying the st_geometries, but the problem is on the raster side that I shouldnt reduce.

When I comment some of the maps and the html file weights about 10mb, the Rpubs upload works properly.

Is there a way to upload such heavy files to Rpubs or similar free platform?

Thanks!!!

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.