Issues with Admin Block/Actions

Hey team,

It seems that there are ongoing issues in the Shopify admin. When you’ve got a Shopify admin block in combination with an action, an error is thrown in the browser console and it’s crashing browsers.

It feels like a combination of a CDN caching issue (it’s not happening every day) and an actual bug.

We’ve have multiple merchants reach out that saw their browsers crash. The error is coming from Shopify’s own JavaScript code and not from the extensions.

We see the issue happening when you open an action from a block, and then close the block. On that moment, a repeating JavaScript error is thrown (setTimeout seems to be related to it?) and it’s crashing the browser because of a loop.

It’s 100% not the extensions themselves because we see it with different extensions, and we’re not using setTimeout anywhere in the app, and it started happening since earlier this week and none of the app blocks have been updated during that period.

It’s rather urgent as it impacts key operation processes of merchants.

@Liam-Shopify

@stefan

Can you provide information about the shop and the extension / app having this issue as well as steps to reproduce? Is it consistent? You said not happening every day. Do you know roughly in what condition it would break?

Hi @Henry_Tao

Nice to meet you. I’m a colleague of Stefan.

The client has been reporting this issue for the past five days. I’ve attached a screenshot showing the problem. None of the Admin Extensions are loading.

I was able to reproduce the issue this morning, but it’s no longer happening. The same thing has occurred over the past few days—it happens intermittently. This isn’t affecting just one Admin Extension; all of them fail to load when the issue occurs.

Hmmm. Do you see any errors in browser console when this happens?

Yes, plenty. And they only happen when you close the action modal. I’ve recorded a video and I’ve created a gist for the logs: Logs when crashing · GitHub .

Note: I’ve cleaned up the logs a little bit, and tried to catch as much as possible before the browser crashed. I see some errors about an event listener and about set timeout. None of these functions are used in the extensions.

I’ll share the recording in private. EDIT: I’m unsure how to send a private message through the forum itself. Would you mind sending me one so I can share the video with you?

@Henry_Tao We’ve been getting reports from users of admin UI extensions not responding or outright crashing browsers. We haven’t made any changes to this, but we were able to reproduce this now. Here’s a few errors we’re seeing that seem related:

TypeError: (intermediate value).setTimeout is not a function

image