Definitely tried that last night and again this morning. I have secluded the error to JSON.parse(). It fails intermittently as shown in the gif videos (works with “F”. fails on “Fr”. fails on “Fre”, works with on “French c”, Fails with “French”). Additionally, I’ve validated the JSON data and I don’t see any errors with all of these returns.
I’m about ready to take my frustration out on my monitor…
JSON Data from “Fre”
{
"drinks": [
{
"idDrink": "17197",
"strDrink": "French 75",
"strDrinkAlternate": null,
"strDrinkES": null,
"strDrinkDE": null,
"strDrinkFR": null,
"strDrinkZH-HANS": null,
"strDrinkZH-HANT": null,
"strTags": "IBA,ContemporaryClassic",
"strVideo": null,
"strCategory": "Ordinary Drink",
"strIBA": "Contemporary Classics",
"strAlcoholic": "Alcoholic",
"strGlass": "Collins glass",
"strInstructions": "Combine gin, sugar, and lemon juice in a cocktail shaker filled with ice. Shake vigorously and strain into a chilled champagne glass. Top up with Champagne. Stir gently.",
"strInstructionsES": null,
"strInstructionsDE": "Gin, Zucker und Zitronensaft in einem mit Eis gefüllten Cocktailshaker mischen. Kräftig schütteln und in ein gekühltes Champagnerglas abseihen. Mit Champagner auffüllen. Vorsichtig umrühren.",
"strInstructionsFR": null,
"strInstructionsZH-HANS": null,
"strInstructionsZH-HANT": null,
"strDrinkThumb": "https:\/\/www.thecocktaildb.com\/images\/media\/drink\/hrxfbl1606773109.jpg",
"strIngredient1": "Gin",
"strIngredient2": "Sugar",
"strIngredient3": "Lemon juice",
"strIngredient4": "Champagne",
"strIngredient5": "Orange",
"strIngredient6": "Maraschino cherry",
"strIngredient7": null,
"strIngredient8": null,
"strIngredient9": null,
"strIngredient10": null,
"strIngredient11": null,
"strIngredient12": null,
"strIngredient13": null,
"strIngredient14": null,
"strIngredient15": null,
"strMeasure1": "1 1\/2 oz ",
"strMeasure2": "2 tsp superfine ",
"strMeasure3": "1 1\/2 oz ",
"strMeasure4": "4 oz Chilled ",
"strMeasure5": "1 ",
"strMeasure6": "1 ",
"strMeasure7": null,
"strMeasure8": null,
"strMeasure9": null,
"strMeasure10": null,
"strMeasure11": null,
"strMeasure12": null,
"strMeasure13": null,
"strMeasure14": null,
"strMeasure15": null,
"strImageSource": "https:\/\/pixabay.com\/de\/photos\/champagner-cocktail-french-75-5374793\/",
"strImageAttribution": "robert84ak https:\/\/pixabay.com\/de\/users\/robert84ak-16722616\/",
"strCreativeCommonsConfirmed": "Yes",
"dateModified": "2017-09-02 17:10:15"
},
{
"idDrink": "17213",
"strDrink": "French Martini",
"strDrinkAlternate": null,
"strDrinkES": null,
"strDrinkDE": null,
"strDrinkFR": null,
"strDrinkZH-HANS": null,
"strDrinkZH-HANT": null,
"strTags": "NewEra,IBA",
"strVideo": null,
"strCategory": "Cocktail",
"strIBA": "New Era Drinks",
"strAlcoholic": "Alcoholic",
"strGlass": "Cocktail glass",
"strInstructions": "Pour all ingredients into shaker with ice cubes. Shake well and strain into a chilled cocktail glass. Squeeze oil from lemon peel onto the drink.",
"strInstructionsES": null,
"strInstructionsDE": "Alle Zutaten in den Shaker mit Eiswürfeln geben. Gut schütteln und in ein gekühltes Cocktailglas abseihen. Das Öl aus der Zitronenschale auf das Getränk drücken.",
"strInstructionsFR": null,
"strInstructionsZH-HANS": null,
"strInstructionsZH-HANT": null,
"strDrinkThumb": "https:\/\/www.thecocktaildb.com\/images\/media\/drink\/clth721504373134.jpg",
"strIngredient1": "Vodka",
"strIngredient2": "Raspberry Liqueur",
"strIngredient3": "pineapple juice",
"strIngredient4": null,
"strIngredient5": null,
"strIngredient6": null,
"strIngredient7": null,
"strIngredient8": null,
"strIngredient9": null,
"strIngredient10": null,
"strIngredient11": null,
"strIngredient12": null,
"strIngredient13": null,
"strIngredient14": null,
"strIngredient15": null,
"strMeasure1": "4.5 cl",
"strMeasure2": "1.5 cl",
"strMeasure3": "1.5 cl",
"strMeasure4": null,
"strMeasure5": null,
"strMeasure6": null,
"strMeasure7": null,
"strMeasure8": null,
"strMeasure9": null,
"strMeasure10": null,
"strMeasure11": null,
"strMeasure12": null,
"strMeasure13": null,
"strMeasure14": null,
"strMeasure15": null,
"strImageSource": null,
"strImageAttribution": null,
"strCreativeCommonsConfirmed": "No",
"dateModified": "2017-09-02 18:25:34"
},
{
"idDrink": "17248",
"strDrink": "French Negroni",
"strDrinkAlternate": null,
"strDrinkES": null,
"strDrinkDE": null,
"strDrinkFR": null,
"strDrinkZH-HANS": null,
"strDrinkZH-HANT": null,
"strTags": null,
"strVideo": null,
"strCategory": "Cocktail",
"strIBA": null,
"strAlcoholic": "Alcoholic",
"strGlass": "Martini Glass",
"strInstructions": "Add ice to a shaker and pour in all ingredients.\nUsing a bar spoon, stir 40 to 45 revolutions or until thoroughly chilled.\nStrain into a martini glass or over ice into a rocks glass. Garnish with orange twist.",
"strInstructionsES": null,
"strInstructionsDE": "Füge Eis in einen Shaker und gieße alle Zutaten ein. Rühren Sie mit einem Barlöffel 40 bis 45 Umdrehungen oder bis zur vollständigen Abkühlung. In ein Martini-Glas oder über Eis in ein Rocks Glas abseihen. Mit Orangenspirale garnieren.",
"strInstructionsFR": null,
"strInstructionsZH-HANS": null,
"strInstructionsZH-HANT": null,
"strDrinkThumb": "https:\/\/www.thecocktaildb.com\/images\/media\/drink\/x8lhp41513703167.jpg",
"strIngredient1": "Gin",
"strIngredient2": "Lillet",
"strIngredient3": "Sweet Vermouth",
"strIngredient4": "Orange Peel",
"strIngredient5": null,
"strIngredient6": null,
"strIngredient7": null,
"strIngredient8": null,
"strIngredient9": null,
"strIngredient10": null,
"strIngredient11": null,
"strIngredient12": null,
"strIngredient13": null,
"strIngredient14": null,
"strIngredient15": null,
"strMeasure1": "1 oz",
"strMeasure2": "1 oz",
"strMeasure3": "1 oz",
"strMeasure4": "1",
"strMeasure5": null,
"strMeasure6": null,
"strMeasure7": null,
"strMeasure8": null,
"strMeasure9": null,
"strMeasure10": null,
"strMeasure11": null,
"strMeasure12": null,
"strMeasure13": null,
"strMeasure14": null,
"strMeasure15": null,
"strImageSource": null,
"strImageAttribution": null,
"strCreativeCommonsConfirmed": "No",
"dateModified": "2017-12-19 17:06:07"
},
{
"idDrink": "17198",
"strDrink": "French Connection",
"strDrinkAlternate": null,
"strDrinkES": null,
"strDrinkDE": null,
"strDrinkFR": null,
"strDrinkZH-HANS": null,
"strDrinkZH-HANT": null,
"strTags": "IBA,ContemporaryClassic",
"strVideo": null,
"strCategory": "Ordinary Drink",
"strIBA": "Contemporary Classics",
"strAlcoholic": "Alcoholic",
"strGlass": "Old-fashioned glass",
"strInstructions": "Pour all ingredients directly into old fashioned glass filled with ice cubes. Stir gently.",
"strInstructionsES": null,
"strInstructionsDE": "Alle Zutaten direkt in ein old fashioned Glas mit Eiswürfeln geben. Vorsichtig umrühren.",
"strInstructionsFR": null,
"strInstructionsZH-HANS": null,
"strInstructionsZH-HANT": null,
"strDrinkThumb": "https:\/\/www.thecocktaildb.com\/images\/media\/drink\/zaqa381504368758.jpg",
"strIngredient1": "Cognac",
"strIngredient2": "Amaretto",
"strIngredient3": null,
"strIngredient4": null,
"strIngredient5": null,
"strIngredient6": null,
"strIngredient7": null,
"strIngredient8": null,
"strIngredient9": null,
"strIngredient10": null,
"strIngredient11": null,
"strIngredient12": null,
"strIngredient13": null,
"strIngredient14": null,
"strIngredient15": null,
"strMeasure1": "1 1\/2 oz ",
"strMeasure2": "3\/4 oz ",
"strMeasure3": null,
"strMeasure4": null,
"strMeasure5": null,
"strMeasure6": null,
"strMeasure7": null,
"strMeasure8": null,
"strMeasure9": null,
"strMeasure10": null,
"strMeasure11": null,
"strMeasure12": null,
"strMeasure13": null,
"strMeasure14": null,
"strMeasure15": null,
"strImageSource": null,
"strImageAttribution": null,
"strCreativeCommonsConfirmed": "No",
"dateModified": "2017-09-02 17:12:39"
}
]
}