question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception: accountId cannot be null

See original GitHub issue

Describe the bug Getting an exception when trying to get account, see here: var account = server.Accounts.Account(keyPair).Result;

This used to work and has only just stopped working. I have not updated/changed the version of the dotnet-stellar-sdk or changed the testnet-server.

Screenshots: screenshot 2019-03-01 13 00 44 screenshot 2019-03-01 13 01 14

See full exception here: System.ArgumentNullException HResult=0x80004003 Message=accountId cannot be null Parameter name: accountId Source=stellar-dotnetstandard-sdk StackTrace: at stellar_dotnet_sdk.responses.Signer…ctor(String accountId, Nullable1 weight) in C:\Users\eric\Documents\GitHub\dotnetcore-stellar-sdk\stellar-dotnet-sdk\responses\AccountResponse.cs:line 147 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor1 creator, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject(JsonReader reader, JsonObjectContract objectContract, JsonProperty containerMember, JsonProperty containerProperty, String id, Boolean& createdFromNonDefaultCreator) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nukeccommented, Mar 2, 2019

AccountResponse still has KeyPair property, which at the moment returns back 0 after changes. Maybe remove that property fully or put obsolete, so people can fix their code.

0reactions
elucidsoftcommented, Mar 2, 2019

Absolutely, if you want to contribute and make this change I will accept your PR. This project only gets stronger by more community participation. Otherwise, other contributors can pick up this suggestion and commit it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Null Pointer Exception add AccountId to WhatId for Task
AccountId = null in the following loop: ... All you have to do is check that your fetched contact is not null and...
Read more >
Case.AccountId returns NULL for non-administrators
I have an error that is caused by the Case.AccountId field equalling NULL when inside a Before Insert Case Trigger.
Read more >
java - @NotNull : validation custom message not displaying
But problem is that when I am passing nAccountId as null I am not getting custom message i.e. Account id can not be...
Read more >
Resolved - Parameter name null when new Account()
and I can't login. Code (CSharp):. ArgumentNullException: Value cannot be null. Parameter name: name. VivoxUnity.AccountId..ctor (System.
Read more >
Getting "Cannot bind argument to parameter ...
Cannot bind argument to parameter 'SubscriptionId' because it is null. There are some common issues that can trigger this error: 1) Permissions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found