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

JsonSerializationException when logging in (ApiContext.Create) #135

Closed
1 of 2 tasks
InhouseMedia opened this issue Apr 21, 2020 · 7 comments
Closed
1 of 2 tasks

JsonSerializationException when logging in (ApiContext.Create) #135

InhouseMedia opened this issue Apr 21, 2020 · 7 comments

Comments

@InhouseMedia
Copy link

Steps to reproduce:

Log in with ApiContext.Create()

What should happen:

Make use of api

What happens:

JsonSerializationException

Newtonsoft.Json.JsonSerializationException: "Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Bunq.Sdk.Model.Generated.Object.LabelUser' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.\nTo fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.\nPath '[2].UserCompany.director_alias', line 95, position 25."

Traceback

SDK version and environment

  • Tested on 0.12.4
  • Sandbox
  • Production

Response id

  • Response id:

Extra info:

@tbotting
Copy link

Having the same for the Java SDK. It's been almost 24 hours now.

@InhouseMedia
Copy link
Author

Have made a pull-request that solves the issue
#136

@loedeman
Copy link

The same issue here (production), would be very nice if the PR got published asap ;)...

@tbotting
Copy link

Sorry for being harsh, but I believe as a bank, completely breaking your SDKs overnight and taking this much time to fix it is not acceptable.

@mason-chase
Copy link

I cannot believe Bunq make a change to API model without updating Document or SDK Nuget ,
This is a breaking change, when is the nuget going to be updated?

@lexym
Copy link
Contributor

lexym commented Apr 29, 2020

Hey, guys 👋We've resolved the issue. It must work now.

@lexym lexym closed this as completed Apr 29, 2020
@mason-chase
Copy link

Are we back to original? Can you please clarify? I patched SDK manually to accept Array of DirectoAlias Object and today it stopped working again today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants