Recipe - Food - Nutrition

FREEMIUM
Verified
By David | Updated 5 days ago | Food
Popularity

9.9 / 10

Latency

493ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Ruby - key not found: :ciphers

Rapid account: Iaryiou 111
iaryiou111
5 years ago

I’m having trouble getting a response from the API in Ruby. When testing on RapidAPI and through cUrl, everything works as expected, so my API key is valid. Using Unirest or RestClient, I get back the error in the title (KeyError (key not found: :ciphers)).

Strangely, this was working for me last Friday. I haven’t changed anything about the code since then. Is there an SSL key I also need to be applying?

Here’s the code of my request. Sorry RapidAPI doesn’t support markdown for code.

`Unirest.get(“https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/searchComplex?query=#burger&instructionsRequired=true”,
headers:{
“X-RapidAPI-Host” => “spoonacular-recipe-food-nutrition-v1.p.rapidapi.com”,
“X-RapidAPI-Key” => self.key
}
)

Rapid account: Iaryiou 111
iaryiou111 Commented 5 years ago

Using the HTTParty gem worked for me. I can’t guess why, but leaving it here in case it helps someone else.

Join in the discussion - add comment below:

Login / Signup to post new comments