https://www.usps.com/ - FAQ Information Missing

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
OldMan77Webby
Moongazer
Moongazer
Posts: 10
Joined: 2023-12-19, 21:35

https://www.usps.com/ - FAQ Information Missing

Post by OldMan77Webby » 2024-11-02, 16:52

My System: Windows 7 Professional 64-bit
Pale Moon version: V33.4.0.1 (2024-10-09) 64-bit
Adblock is disabled on the website:

Debug steps:

1. Go to USPS home page at: https://www.usps.com/
2. Scroll down to the bottom of the page under the first column, 4th entry.
3. Click on: FAQs.
4. No information is displayed on the webpage:

https://faq.usps.com/s/?_gl=1*fr2ghu*_g ... MC4wLjAuMA..

Toolkit Error Console Output Follows:

Code: Select all


Timestamp: 11/2/2024 12:38:27 PM
Error: XML Parsing Error: syntax error
Location: https://p.tvpixel.com/com.snowplowanalytics.snowplow/tp2
Line Number 1, Column 1:
Source File: https://p.tvpixel.com/com.snowplowanalytics.snowplow/tp2
Line: 1, Column: 1
Source Code:
ok

Timestamp: 11/2/2024 12:38:43 PM
Error: ReferenceError: TransformStream is not defined
Source File: https://faq.usps.com/s/sfsites/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js line 321 > eval
Line: 1


The FAQ works in Firefox browser.

User avatar
Moonchild
Project founder
Project founder
Posts: 38821
Joined: 2011-08-28, 17:27
Location: Sweden

Re: https://www.usps.com/ - FAQ Information Missing

Post by Moonchild » 2024-11-02, 16:59

The issue is "TransformStream"
Not entirely sure why a FAQ page would be using arbitrary data transformation on the browser side, but it's part of the Streams API we don't support at the moment.
"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

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

Re: https://www.usps.com/ - FAQ Information Missing

Post by vannilla » 2024-11-02, 21:41

Moonchild wrote:
2024-11-02, 16:59
The issue is "TransformStream"
Not entirely sure why a FAQ page would be using arbitrary data transformation on the browser side, but it's part of the Streams API we don't support at the moment.
After having to dabble with some minimal frameworks due to certain obligations, I think I have a suspect: most development environments use tools that catenate javascript files together and then apply some tranformations (e.g. minimization) to this catenation. It's very likely that a specific page or widget allocates one of these classes at the top level (a global variable, a "static" class property, etc.) and because this piece of code is always made available due to file joins, even a FAQ will end up requiring it.
Of course bad tooling does not exclude bad programming: why is the site even using the Stream API in the first place? Still, it is something that can cause issues even in "properly" coded sites.
It might also be a way to detect features, but crashing completely with no fallbacks or a structured error message makes it extremely unlikely.

User avatar
adoxa
Astronaut
Astronaut
Posts: 578
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: https://www.usps.com/ - FAQ Information Missing

Post by adoxa » 2024-11-03, 08:17

Here's a Modify HTTP Response filter to work around it (currently only for the FAQ URL, so other pages may still be broken).

Code: Select all

[["faq.usps.com",["/app\\.js/",["/extends TransformStream(.*?)super.*?\\}\\)/","$1"]]]]