Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.InvalidCastException "Object must implement IConvertible" on SetQueryParams #672

Closed
springy76 opened this issue Jan 27, 2022 · 2 comments
Labels

Comments

@springy76
Copy link

springy76 commented Jan 27, 2022

Full repro;

Url url = "http://127.0.0.1/api".SetQueryParams(new Model { Values = Enumerable.Range(1, 3).ToArray() });

public class Model
{
	public IEnumerable<int> Values { get; set; }
}

Had been working using Flurl.Http (Flurl alone only included transitive) on versions 2.4.x, 3.0.x till 3.2.0 - now fails using 3.2.2

@springy76 springy76 added the bug label Jan 27, 2022
@tmenier
Copy link
Owner

tmenier commented Apr 25, 2022

Sorry, sort of let this slip through the cracks. Legit bug, regression related to #632. It'll be fixed in the next maintenance release.

@tmenier
Copy link
Owner

tmenier commented Apr 25, 2022

Released

@tmenier tmenier closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants