Skip to content

csharp sdk: getting a cannot access a disposed object error on automatic request retry #8191

@windeous

Description

@windeous

Which Fern component?

SDK Generator

How urgent is this?

P1 - High (Strongly needed)

What's the issue?

Steps to reproduce:

  • send a request to a server that will return status code 500 so that the sdk retries the request

From what ive seen this is all it takes, upon retry the sdk incorrectly clones the request and actually passes just a reference of the previous request's content which then gets disposed and when trying to read the new request's content we get this error.

Fern CLI & Generator Versions

Fern CLI Version: "0.65.18"
fernapi/fern-csharp-sdk version: 2.1.0

Workaround

#Opening a pr to fix this #8190 . Implementing this in my generated sdk fixed the issue

Are you interested in contributing a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions