Coder Social home page Coder Social logo

Comments (4)

mkiki avatar mkiki commented on July 28, 2024 1

Recent versions of the SDK now have the ability to set the timeout, either globally, or even on a per-call basis. See https://github.com/adobe/acc-js-sdk/blob/master/README.md#timeouts

from acc-js-sdk.

mkiki avatar mkiki commented on July 28, 2024

Hi @francescor93 , yes this is possible. The SDK supports changing the transport library. By default, it's using axios (assuming you're running server-side on node.js). Check the https://github.com/adobe/acc-js-sdk/blob/master/README.md#the-transport-protocol section of the readme. You should be able to create your own transport class where you can, for instance change the timeout. I think a better solution would be to use a campaign job instead. Basically, your API call creates the job and will return a job id. The server will execute the job that you can poll for completion. This is how ACC UI handles such long running operations. Give me a couple of days to research the right syntax, it's not something I'm really familiar with

from acc-js-sdk.

francescor93 avatar francescor93 commented on July 28, 2024

Hi again and thanks for your quick reply.
Following your advice, I've created my own transport class based on my needs and I can confirm that it works, so, personally, I think that no further changes are needed. If you can also explain me how I could handle this case using an Adobe Campaign job, I'll be happy to try this methodology too, but if it takes to you too long, no worries, I'm already satisfied with it.
Thanks again for the support and for maintaining this really good library.

from acc-js-sdk.

francescor93 avatar francescor93 commented on July 28, 2024

That sounds great, I'll definitely use it in my projects.
Thank you so much for your support and your answers!

from acc-js-sdk.

Related Issues (10)

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.