Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Error: createType(AccountId):: Decoding undefined: Invalid decoded address length #726

Closed
amaury1093 opened this issue Jan 21, 2020 · 2 comments · Fixed by #743
Closed

Comments

@amaury1093
Copy link
Contributor

When opening for the first time, I often (not always?) get this error

Screenshot 2020-01-21 at 12 27 37

Error: createType(AccountId):: Decoding undefined: Invalid decoded address length
▶ 4 stack frames were collapsed.
Observable._trySubscribe
src/internal/Observable.ts:239
Observable.subscribe
src/internal/Observable.ts:218
CatchOperator.call
src/internal/operators/catchError.ts:108
Observable.subscribe
src/internal/Observable.ts:215
DistinctUntilChangedOperator.call
src/internal/operators/distinctUntilChanged.ts:75
Observable.subscribe
src/internal/Observable.ts:215
Observable.ConnectableObservable.connect
src/internal/observable/ConnectableObservable.ts:44
  41 |     };
  42 |     ConnectableObservable.prototype.refCount = function () {
  43 |         return higherOrderRefCount()(this);
> 44 |     };
  45 |     return ConnectableObservable;
  46 | }(Observable));
  47 | export { ConnectableObservable };
View compiled
Observable._subscribe
node_modules/@polkadot/rpc-core/rxjs/refCountDelay.js:29
Observable._trySubscribe
src/internal/Observable.ts:239
Observable.subscribe
src/internal/Observable.ts:218
subscribeToResult
src/internal/util/subscribeToResult.ts:37
CombineLatestSubscriber._complete
src/internal/observable/combineLatest.ts:289
CombineLatestSubscriber.Subscriber.complete
src/internal/Subscriber.ts:127
  124 |     return _this;
  125 | }
  126 | SafeSubscriber.prototype.next = function (value) {
> 127 |     if (!this.isStopped && this._next) {
      | ^  128 |         var _parentSubscriber = this._parentSubscriber;
  129 |         if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
  130 |             this.__tryOrUnsub(this._next, value);
View compiled
// truncated

Refreshing makes the error go away

@pmespresso
Copy link
Contributor

It seems to be from when a path loads before keyring is ready, then the AddressSummary component tries to query the balance of an undefined/empty string address. The Route should be waiting for cryptowaitready() however, so not sure what else is going on underneath.

@pmespresso
Copy link
Contributor

I would take this but I can't reproduce it now...if and when it happens again I will drop what I'm doing and come back to it

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

Successfully merging a pull request may close this issue.

2 participants