When fetching Concepts through gameList some apps have the concept id but has no other information to be plucked, this often occur when fetching non-game apps, like HBO, Spotify, Netflix...
At JsonStream.php:39, Tustin\Haste\Http\JsonStream->jsonSerialize() you can catch an error on store front with message Store Front: There is no required storefront for this concept. and error code 3162368 maybe it could be useful implement an Exception to handle some errors.
I traced the problem until the jsonSerialize() where the conceptRetrieve is null, this value returned to Concept will throw the error since it's expecting a string.
My solution was, instead of modify the pluck() create another function on model to handle the null values and always return a string to avoid side effects on other classes.
Also I created the unit test for the Concept null values.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Problem
When fetching
Concepts
throughgameList
some apps have theconcept id
but has no other information to be plucked, this often occur when fetching non-game apps, like HBO, Spotify, Netflix...At
JsonStream.php:39, Tustin\Haste\Http\JsonStream->jsonSerialize()
you can catch an error on store front with messageStore Front: There is no required storefront for this concept.
and error code3162368
maybe it could be useful implement an Exception to handle some errors.The concept is:
Stack trace
I traced the problem until the
jsonSerialize()
where theconceptRetrieve
is null, this value returned toConcept
will throw the error since it's expecting a string.Solution
My solution was, instead of modify the
pluck()
create another function on model to handle the null values and always return a string to avoid side effects on other classes.Also I created the unit test for the
Concept
null values.