Single Experiment page generation failed with error Error fetching experiment.
This happened because the API response was expected to be of Experiment type which had context as Vec<Conditions> wasn't able to de-serialize correctly.
Solution
The correct expected API response type should have been ExperimentResponse, which we overlooked.
Changes made
Change fetch_experiment return value to ExperimentResponse
implemented From<ExperimentResponse> for Experiment
Problem
Single Experiment page generation failed with error
Error fetching experiment
. This happened because the API response was expected to be ofExperiment
type which hadcontext
asVec<Conditions>
wasn't able to de-serialize correctly.Solution
The correct expected API response type should have been
ExperimentResponse
, which we overlooked.Changes made
fetch_experiment
return value toExperimentResponse
From<ExperimentResponse>
forExperiment