UPS website acting up again

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
ron_1
Knows the dark side
Knows the dark side
Posts: 3032
Joined: 2012-06-28, 01:20

UPS website acting up again

Post by ron_1 » 2025-10-30, 09:55

UPS not loading again. Just getting blank white page. It just worked yesterday. Below is error console information.

https://www.ups.com/us/en/home

Code: Select all

Timestamp: 10/30/2025 05:52:16 AM
Warning: unreachable code after return statement
Source File: https://www.ups.com/0cC9pPtyB/OGvB/Ryd4w/O9OcNVuYz59rwfc37S/fhE3IRYeBQ/EgUUOVYL/FFw
Line: 1, Column: 392139
Source Code:
m;}var V6;function w1(p4m){return W2m()[p4m];}var Bs;var x0;p8;}());

Timestamp: 10/30/2025 05:52:16 AM
Error: SyntaxError: await is a reserved identifier
Source File: https://www.ups.com/webassets/scripts/ims-api.js
Line: 14, Column: 19
Source Code:
const siteConfig = await fetchSiteConfig(); 

Timestamp: 10/30/2025 05:52:16 AM
Error: SyntaxError: await is a reserved identifier
Source File: https://www.ups.com/webassets/scripts/ims-api.js
Line: 14, Column: 19
Source Code:
const siteConfig = await fetchSiteConfig(); 

Timestamp: 10/30/2025 05:52:17 AM
Warning: unreachable code after return statement
Source File: https://www.ups.com/0cC9pPtyB/OGvB/Ryd4w/8VOcNVuYz59r/Z2hAIRYeBQ/ekZfR1Vx/OF9kAQ?v=6d502e1e-5345-4ffa-dbec-7f8122fd170f
Line: 1, Column: 45962
Source Code:
tion q9(){return M6()+F5("\x62\x32\x33\x36\x38\x66\x31")+3;}0xb2368f1,3909873050;var WO;function ff(){this["VU"]=(this["

Timestamp: 10/30/2025 05:52:17 AM
Warning: unreachable code after return statement
Source File: https://www.ups.com/0cC9pPtyB/OGvB/Ryd4w/8VOcNVuYz59r/Z2hAIRYeBQ/ekZfR1Vx/OF9kAQ?v=6d502e1e-5345-4ffa-dbec-7f8122fd170f
Line: 1, Column: 411218
Source Code:
rg"]>>>16)*0x1b873593&0xffff)<<16)&0xffffffff;this.Qsg=Tzg;}g8;}());

Timestamp: 10/30/2025 05:52:17 AM
Warning: unreachable code after return statement
Source File: https://www.ups.com/0cC9pPtyB/OGvB/Ryd4w/8VOcNVuYz59r/Z2hAIRYeBQ/ekZfR1Vx/OF9kAQ?v=6d502e1e-5345-4ffa-dbec-7f8122fd170f
Line: 1, Column: 45962
Source Code:
tion q9(){return M6()+F5("\x62\x32\x33\x36\x38\x66\x31")+3;}0xb2368f1,3909873050;var WO;function ff(){this["VU"]=(this["

User avatar
Gemmaugr
Lunatic
Lunatic
Posts: 311
Joined: 2025-02-03, 07:55

Re: UPS website acting up again

Post by Gemmaugr » 2025-10-30, 09:59


User avatar
ron_1
Knows the dark side
Knows the dark side
Posts: 3032
Joined: 2012-06-28, 01:20

Re: UPS website acting up again

Post by ron_1 » 2025-10-30, 10:14

How can you tell that is the issue here? It all looks Greek to me.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38483
Joined: 2011-08-28, 17:27
Location: Sweden

Re: UPS website acting up again

Post by Moonchild » 2025-10-30, 10:22

The key is the following:

Code: Select all

Error: SyntaxError: await is a reserved identifier
"await" is a specific keyword that is reserved and can't be defined by any script itself.
The error that "await" is being a reserved identifier means it's being used in a place in the scripting where it isn't expected. Since the identifier can't be interpreted in that location it assumes it's being redefined, causing the error. In our case that would only occur at the top level where we don't currently support it (as we don't asynchronously wrap all scripting)
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
ron_1
Knows the dark side
Knows the dark side
Posts: 3032
Joined: 2012-06-28, 01:20

Re: UPS website acting up again

Post by ron_1 » 2025-10-30, 11:46

I take it then that this is not a trivial fix, since it's been an issue for 2 years?

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2487
Joined: 2018-05-05, 13:29

Re: UPS website acting up again

Post by vannilla » 2025-10-30, 11:57

ron_1 wrote:
2025-10-30, 11:46
I take it then that this is not a trivial fix, since it's been an issue for 2 years?
It's fairly non-trivial, yeah.
But it's also "funny" because await effectively "stops" the script from executing until the operation completes, turning an asynchronous operation into a synchronous one (it's more complex than that, but conceptually that's how it works).
Traditionally, <script> tags would "stop" loading the document until the source is downloaded and evaluated. It is not truly equivalent but for most purposes placing a piece of code inside a <script> tag and using "top level await" have the exact same effect, making the latter not any better for performance than the old approach while adding piles of delicate code to the underlying engine.