Random Quote Generator Example Link is Dysfunctional

Random Quote Generator Example Link is Dysfunctional
0

#1

First ever post so sorry if I’m doing something wrong!

The example link in the first step of the Random Quote Generator challenge (https://codepen.io/FreeCodeCamp/full/ONjoLe/) does not work properly, though the random number generator on hezag’s profile works as intended. The ajax call for retrieving a random quote has a success callback which tries to call JSON.parse on the response that is already in JSON causing an “unexpected token o” error. Removing the JSON.parse makes it work.

Didn’t find a post on this so thought I’d mention it!


#2

Bugs like this are tracked as GitHub Issues. It looks like this one has already been reported and is being tracked in Issue #14875.