GithubHelp home page GithubHelp logo

Comments (7)

senorrojo avatar senorrojo commented on August 23, 2024 1

Ah, that downloaded_files directory did not exist. Just created it and tried again on the single record and all worked. Also tried it with all records on a more complicated project and everything worked as expected. Thanks for the easy (and quick) fix!

from redcap-api-transfer.

aldefouw avatar aldefouw commented on August 23, 2024 1

@senorrojo - Note that there is now a change to repository that should prevent what you experienced.

1a7593a

What I'm doing now is detecting if the /downloaded_files folder exists. If it does not, I create it. That should prevent the error you were experiencing.

If you want to pull the patch, remove that folder and see if it works that would be cool. Thanks!

from redcap-api-transfer.

senorrojo avatar senorrojo commented on August 23, 2024 1

@aldefouw Just pulled the patch, removed the folder and did a test transfer - the directory was auto-created on transfer and all worked as expected with no errors. Confirming that the patch works. Thanks!

from redcap-api-transfer.

aldefouw avatar aldefouw commented on August 23, 2024

@senorrojo - Thanks for reporting this. Based on the partial stack trace, the error seems to be happening within the Curl request itself.

Can you see the 2a206 form.pdf file on your hard drive in the ~/redcap-api-transfer/downloaded_files/ folder? How big is the file?

Have you checked the file size limits on the destination server? You might be exceeding the configured PHP max upload size or some other limit ...

This might be hard to reproduce for me if this is a configuration issue at the PHP level on your server. If you want, you could post a phpinfo() of the file upload limits, etc.

from redcap-api-transfer.

aldefouw avatar aldefouw commented on August 23, 2024

@senorrojo - You might have uncovered a potential oversight / bug in the script though. It would probably be better if I created that folder if it does not exist.

I probably never noticed it because I always had the folder on my local machine ...

from redcap-api-transfer.

aldefouw avatar aldefouw commented on August 23, 2024

Fix will be to investigate whether it's worth creating the /downloaded_files folder.

Probably need to do a change directory and create the folder.

from redcap-api-transfer.

aldefouw avatar aldefouw commented on August 23, 2024

@senorrojo - Awesome thanks for confirming.

from redcap-api-transfer.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.