-
Notifications
You must be signed in to change notification settings - Fork 314
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.ArgumentException: An item with the same key has already been added. Key: limit #567
Comments
Note that I'm using a local build of the latest GitHub checkout because I need access to the NextPage and PreviousPage functionality recently added but not yet released. |
@smfields Mh, this is a weird bug. Do you know if some call before this exception succeed? Or is the first call already failing? |
@JohnnyCrazy As far as I can tell at least one call succeeded before this, if not more. |
@smfields Maybe found the culprit. It's related to how we cache type information for query/body params to reduce reflection calls. Since you're already on a local build, could you test out branch |
@JohnnyCrazy Yup, the fixes made in |
Alright, thanks for the feedback, I will leave the issue open for some days and if I hear nothing, it will be in the next reelase. Thanks for the report! 😉 |
Hey, I had a similar issue today with System.ArgumentException: An item with the same key has already been added. Key: q
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at SpotifyAPI.Web.RequestParams.AddQueryParam(Dictionary`2 queryParams, PropertyInfo prop, QueryParamAttribute attribute)
at SpotifyAPI.Web.RequestParams.BuildQueryParams()
at SpotifyAPI.Web.SearchClient.Item(SearchRequest request)
at MusicMatching_NSB.Services.SpotifyService.SearchTracksByIsrc(String isrc, Int32 limit, Int32 offset, String market) in /src/Queues/MusicMatching_NSB/Services/SpotifyService.cs:line 140 |
Getting this error when trying to make a call to
Client.Browse.GetCategoryPlaylists
and passing aCategoriesPlaylistsRequest
. TheCategoriesPlaylistsRequest
isHere's the full stack trace:
The text was updated successfully, but these errors were encountered: