Debug Mode logs unnecessary errors #3
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When using v1.1.3-dev of the NodeJS MarcSync Client & the
signalR.LogLevel
in SubscriptionManager.ts at line 24 is set tosignalR.LogLevel.Debug
instead ofsignalR.LogLevel.None
, it logs the following error everytime I update an entry.Error: A callback for the method 'entryupdated' threw error 'TypeError: Cannot read properties of undefined (reading 'forEach')'.
This happens everytime I update an entry in my Collection. However, same counts for others when there are no subscribers on that subscription. The error tells us that it tries to look for subscribers in an array called:
this._subscriptions
, defined in the SubscriptionManager.ts script, by doingthis._subscriptions.entryUpdated.forEach()
. However,this._subscriptions.entryUpdated
isundefined
till a script subscribes to theentryUpdated
subscription.Same error applies to all other subscriptions when they are not initialized.
Resolved with marcsync@v1.1.3-dev