Skip to content

Handle missing JSON fields in search results#299

Merged
phatblat merged 15 commits intov1.7from
search-json
Sep 7, 2020
Merged

Handle missing JSON fields in search results#299
phatblat merged 15 commits intov1.7from
search-json

Conversation

@phatblat
Copy link
Member

@phatblat phatblat commented Sep 6, 2020

Fixes an issue where some search terms cause mas to crash with the message "Error: Unable to parse response JSON". This is due to some search results not containing entries for the following keys:

  • fileSizeBytes
  • formattedPrice
  • price (normally present, but "Free" when no cost)

Fixes #284

@phatblat phatblat added this to the Unreleased milestone Sep 6, 2020
@masclibot
Copy link

masclibot commented Sep 6, 2020

1 Warning
⚠️ 😵 Big PR

Generated by 🚫 Danger

@phatblat phatblat changed the base branch from master to v1.7 September 7, 2020 04:26
@phatblat phatblat marked this pull request as ready for review September 7, 2020 04:31
@phatblat phatblat merged commit 4ad7b8d into v1.7 Sep 7, 2020
@phatblat phatblat deleted the search-json branch September 7, 2020 04:32
@phatblat phatblat mentioned this pull request Sep 7, 2020
@phatblat phatblat modified the milestones: Unreleased, 1.7.1 Sep 7, 2020
@rgoldberg rgoldberg changed the title 🐛 Account for missing JSON fields in search results 🐛 Handle missing JSON fields in search results May 15, 2025
@rgoldberg rgoldberg changed the title 🐛 Handle missing JSON fields in search results Handle missing JSON fields in search results Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

search fails with "Error: Unable to parse response JSON"

4 participants