Unreadable errormessage in TS SDK

Hi,

It seems, that something is not defined correctly in my code and it results in this very ugly error message:

8:53:28 AM [error]: ..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/observable/throwError.ts:125
  const init = (subscriber: Subscriber<never>) => subscriber.error(errorFactory());
                                                                   ^
8:53:28 AM [error]: Error: {}
    at ..../node_modules/@actyx/sdk/src/v1/multiplexedWebsocket.ts:63:26
    at Observable.init [as _subscribe] (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/observable/throwError.ts:125:68)
    at Observable._trySubscribe (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Observable.ts:244:19)
    at ..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Observable.ts:234:18
    at Object.errorContext (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/util/errorContext.ts:29:5)
    at Observable.subscribe (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Observable.ts:220:5)
    at ..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/operators/catchError.ts:120:25
    at OperatorSubscriber._this._error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts:52:13)
    at OperatorSubscriber.Subscriber.error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:91:12)
    at OperatorSubscriber.Subscriber._error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:124:24)
    at OperatorSubscriber.Subscriber.error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:91:12)
    at OperatorSubscriber.Subscriber._error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:124:24)
    at OperatorSubscriber.Subscriber.error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:91:12)
    at OperatorSubscriber.Subscriber._error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:124:24)
    at OperatorSubscriber.Subscriber.error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Subscriber.ts:91:12)
    at Observable.init [as _subscribe] (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/observable/throwError.ts:125:62)
    at Observable._trySubscribe (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Observable.ts:244:19)
    at ..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Observable.ts:234:18
    at Object.errorContext (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/util/errorContext.ts:29:5)
    at Observable.subscribe (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/Observable.ts:220:5)
    at ..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/operators/catchError.ts:120:25
    at OperatorSubscriber._this._error (..../node_modules/@actyx/sdk/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts:52:13)

Do you have any clue what’s wrong?

Cheers Alex

Hi @Alex,

are you able to isolate the error to a specific part of your code (like a query, subscription, fish)? It would be very helpful to see what calling code may be causing the error. Unfortunately, the stack trace isn’t helpful in that regard from what I can see.

Also are you using @actyx-contrib/rx-pond, @actyx-contrib/react-pond, @actyx/pond or @actyx/sdk?

Cheers,
Oliver

The error message can definitely be improved, but the error is raised in the v1 part—are you really using ActyxOS v1?

I’m using @actyx/sdk 0.4.2 and actyx V2

this issue is a wrong configuration. I had a not resolvable DNS name configured as actyxHost.

But a better error message would be nice