I am trying the kobo_attachment_download function, but I get an error each time

Hi @dickoa thank you so much for the work on robotoolbox. I am trying the kobo_attachment_download function, but I get an error each time:

Error in file(w$disk, open = “wb”) : all connections are in use.
Downloading files [357ms]
There were 50 or more warnings (use warnings() to see the first 50)

This results in some 0 byte files in the ‘Media’ folder.

Thanks for reporting this issue @guido167. I pushed a fix on Github/gitlab can you update and try again.

pak::pkg_install("dickoa/robotoolbox")

Best,
Ahmadou

1 Like

@dickoa, :bowing_man:

Thank you for the effort. Unfortunately I do not get it to work. The kobo_attachment_download now shows this (32ms is quite short for 3gb of images…). And the folder remains empty.

Scherm­afbeelding 2024-07-01 om 10.38.00

Also, the kobo_asset_file_list function remains results in a tibble with 0 rows.

Also get an error now when I use my previously working code to download submissions…

@guido167, pinging @dickoa for the support again.

Thanks for raising this issue @guido167, not sure how I didn’t had it corrected already. Can you check the with new version on Github ?

1 Like

That’s weird, yesterday I tried with several projects including one with 20gb of images.
I think it’s because I added an overwrite params and set it to FALSE by default and it was not working as expected. Set overwrite to TRUE, I’ll post a fix.

1 Like

It works like a charm now! Thank you :slight_smile:

2 Likes

@dickoa, :bowing_man: @guido167 :tada:

1 Like