This error is traced to a function called getFromServer which is a standard Magento function that retrieves user data from the server in multiple places.
In its default implementation, this getFromServer function throws a vague [object Object] function when it encounters any error from the server. This provides no information about which error occurred or what caused the error, which isn’t very helpful for debugging or investigating the issue.
Fortunately, we have a quick, straightforward fix that reveals the nature of the error and enables you to further investigate or action a fix.
Conclusion and Next Steps
Applying this fix will NOT solve the underlying error that causes getFromServer to fail. Instead, this fix uncovers the error information for investigation and debugging. Without this additional context, you may find it difficult to troubleshoot or further investigate the real problem, as [object Object] will always be the same regardless of the error’s specifics.