Problem/Motivation

When we have a page with inbox, a thread of messages being displayed and notifications, these ajax calls are being made from time to time:

  • get_new_messages
  • get_new_inblox_threads
  • get_new_unread_thread_count (or get_new_unread_message_count depending on the configuration)

Now on another tab of the browser, I logout and then I return to the previous tab.
Three errors will be generated with the message "Oops, something went wrong. Check your browser's developer console for more details.".

Proposed resolution

The goal is to avoid displaying repeated messages.
The message is not user friendly and should be improved or skipped.

One way to do this is to refresh the page.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dxvargas created an issue. See original summary.

dxvargas’s picture

Issue summary: View changes
dxvargas’s picture

I've created a MR but it needs to be checked because it has comes errors in the pipeline.

dxvargas’s picture

Assigned: dxvargas » Unassigned
Status: Active » Needs review

MR is green now. Asking for review...

claudiu.cristea’s picture

Status: Needs review » Reviewed & tested by the community

Let's keep the console.error() reporting. I see other packages, including some from Drupal Core, are also doing it.

claudiu.cristea’s picture

Status: Reviewed & tested by the community » Fixed

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.