Comments (2)
Hi @meain, following up on the question, we do have some work in progress that should introduce functionality for large file uploads as mentioned here microsoftgraph/msgraph-sdk-go-core#12.
For now, if you want to execute a long running operation, you do need to use a context.WithTimeout
to override the current deadline, you can specify a very large duration i.e 5 minutes, or setup the same at client level.
Setting a 0 timeout at the client level will force you to provide timeouts for all requests since 0 at client level acts differently at context level. It is not possible to remove timeouts on all the request as this is generally not good practice.
from kiota-http-go.
Setting a 0 timeout at the client level ...
My bad, I was not clear. The question was regarding setting a 0
timeout for specific requests. I do understand that setting it globally might not be sound idea. What we have currently is to set a large timeout for the specific request.
I would also like to highlight the fact that as of now setting http timeout to 0
will cause the requests to fail as it will set deadline to 0 time units into the future.
from kiota-http-go.
Related Issues (13)
- parameters names decoding handler also decodes values HOT 1
- Response headers are not added to returned error HOT 14
- Add support to provide default middleware options in kiota factory HOT 5
- map XXX error status code
- No HTTP status code information returned if response body is empty HOT 8
- Allow users to handle the raw response object without stopping processing of parseable
- return error from throwFailedResponses for patch calls HOT 2
- unchecked type conversion results in panic HOT 2
- ensure 3XX responses without location header do not throw HOT 8
- Response Handler Set Up in Request Context is never Retrieved
- Is there some way to globally override default 100s timeout HOT 3
- Redirect handler fails when getting drive items using Graph sdk HOT 4
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 kiota-http-go.