Comments (4)
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.
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.
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.
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)
- Query in select mode should always return an array, even if result is empty or one one row
- Workflow PostEvent method not working HOT 5
- Wrong charset while updating html source HOT 3
- Query in getIfExists mode should return null/undefined when requested object does not exist HOT 2
- Add missing hasPackage function HOT 2
- SDK should support abortable requests HOT 1
- Error with package dependency HOT 2
- Element of type memo is coming as empty Object when there is not value in it. HOT 2
- Failing to call anonymous methods HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acc-js-sdk.