From fae875845a72731bd26740b63d9a8e24742a5823 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 4 May 2025 10:47:19 -0400 Subject: [PATCH] Remove workaround no longer needed --- CHANGELOG.md | 4 ++++ playlet-lib/src/source/services/HttpClient.bs | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6f4b85f..14c1b5db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.36.7] - 2025-05-04 ### Fixed diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 3d8e730d..fb0d96a4 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -661,18 +661,6 @@ namespace HttpClient return invalid end if m._json = ParseJson(text) - ' TODO:P2 remove workaround (fix landed, but remove after March 2025 as a precaution) - if m._json = invalid and m.IsSuccess() and not m._json_workaround_tried = true - ' A bug was introduced in Roku OS 14.1 that causes ParseJson to return invalid parsing some unicode characters. - ' So we filter out \uXXXX characters and try to parse again. - ' These characters are mostly emojis, and can't render anyway. - ' Update: a fix has landed in 14.1 (tested on 14.1.4.7709) - m._json_workaround_tried = true - filter = /\\u[0-9a-fA-F]{4}/ - text = filter.ReplaceAll(text, "") - m._json = ParseJson(text) - LogWarn("Failed to parse JSON. Workaround applied. Success:", m._json <> invalid) - end if return m._json end function