Skip to content

Files API FileService's Download method disposes the HttpResponse before returning it #85

@shallonbrous

Description

@shallonbrous

When calling the FileService's Download method and trying to access the content stream, a ObjectDisposedException is thrown. This is due to the Download method disposing the HttpResponse before returning it by prepending the request with using. This disposes the underlying HttpResponseMessage, which disposes Message.Content (HttpConnectionResponseContent) and is why the call to response.ReadAsStream(...) blows up with ObjectDisposedException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions