You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to call IFusionAuthAsyncClient.SearchUsersByIdsAsync(List<string> ids) but if say i give the id's a list containing:
["1a4a9247-2b9d-45d2-ae1e-4714756b5a58","5a1505df-677e-44e3-9c09-d858087eac7b"]
This results in an exception:
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at async Task<IEnumerable<UserDto>> HeroBalancer.Repo.Stores.FusionAuth.FusionAuthUserStore.ReadByIds(Guid[] ids) in /build/src/Repo/Stores/FusionAuth/FusionAuthUserStore.cs:line 73
In FusionAuth, there is a very unhelpful error message which doesnt tell me much about the issue: java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
Eventually, i find in our Nginx-Ingress-Controller logs, the request that was actually made:
Here you can see the ids parameter has been serialized incorrectly. According to the API documentation at https://fusionauth.io/docs/v1/tech/apis/users#search-for-users
this should be serialised as so: ids=1a4a9247-2b9d-45d2-ae1e-4714756b5a58&ids=5a1505df-677e-44e3-9c09-d858087eac7b
The text was updated successfully, but these errors were encountered:
Related to this, in io.fusionauth.DefaultRESTClient "parameters" should be a List<KeyValuePair<string, string>> then you may add multiple parameters with the same Key. Otherwise you must handle this differently
kennyvv
pushed a commit
to HeroBalancer/fusionauth-netcore-client
that referenced
this issue
Jun 5, 2020
This is fixed in #22 - Can you merge this? It's a big roadblock for us currently, forcing us to package our own fork of this library to NuGet so we can use the changes and make progress with our feature releases
I'm trying to call
IFusionAuthAsyncClient.SearchUsersByIdsAsync(List<string> ids)
but if say i give the id's a list containing:["1a4a9247-2b9d-45d2-ae1e-4714756b5a58","5a1505df-677e-44e3-9c09-d858087eac7b"]
This results in an exception:
In FusionAuth, there is a very unhelpful error message which doesnt tell me much about the issue:
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
Eventually, i find in our Nginx-Ingress-Controller logs, the request that was actually made:
Here you can see the ids parameter has been serialized incorrectly. According to the API documentation at https://fusionauth.io/docs/v1/tech/apis/users#search-for-users
this should be serialised as so:
ids=1a4a9247-2b9d-45d2-ae1e-4714756b5a58&ids=5a1505df-677e-44e3-9c09-d858087eac7b
The text was updated successfully, but these errors were encountered: