Skip to content

[Bug]: MissingMethodException on EnsureSuccessfulAsync on WASM #1918

Open
@alexdrl

Description

Describe the bug 🐞

Getting this error on a .NET 8 Blazor Web App, when render mode gets to WASM.

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Method not found: System.Threading.Tasks.Task1<Refit.ApiResponse1<!0>> Refit.ApiResponse1.EnsureSuccessfulAsync() System.MissingMethodException: Method not found: System.Threading.Tasks.Task1<Refit.ApiResponse1<!0>> Refit.ApiResponse1.EnsureSuccessfulAsync()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[d__14](d__14& stateMachine)

Step to reproduce

  1. Create sample project with .NET 8 Blazor
  2. Add Refit reference to WeatherForecast
  3. Call API and ask for EnsureSuccessfulAsync
  4. See error

Reproduction repository

https://github.com/reactiveui/refit

Expected behavior

Method should be present and request being verified

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

Refit Version

No response

Additional information ℹ️

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions