Closed mfrederickson closed 5 years ago
Emailed support:
When I made the change that you requested the api calls failed.
Completed 500 Internal Server Error in 60201ms (ActiveRecord: 9.8ms)
RestClient::GatewayTimeout (504 Gateway Timeout):
app/controllers/badges_controller.rb:266:in `snapshot'
127.0.0.1 - - [25/Jul/2019:11:23:15 AKDT] "POST /badges/766/snapshot.json HTTP/1.1" 500 127901
Here is the code that I am using (line 266):
response = RestClient.post "https://apicloud-facerect.p.rapidapi.com/process-file.json",
{ image: File.new(@badge.picture.path(:badge)) },
{ "X-Mashape-Key" => "DG3G8aFfsemshG7TRzYqz5f9FFPwp1BjRDejsncx9nQ6T06SW3" }
It was working before when I used ‘mashape’ instead of ‘rapidapi’. Please advise.
Hi there, Thanks for reaching out! Your support request (#8907) has been received. Never fear -- our support team is here to help! We will respond to you during our hours Monday to Friday 9:00AM to 5:00PM PST. Happy API-ing, The RapidAPI and Mashape Support Team
Failed:
response = RestClient.post "https://apicloud-facerect.p.rapidapi.com/process-file.json",
{ image: File.new(@badge.picture.path(:badge)) },
{ "X-RapidAPI-Key" => "DG3G8aFfsemshG7TRzYqz5f9FFPwp1BjRDejsncx9nQ6T06SW3",
"X-RapidAPI-Host" => "apicloud-facerect.p.rapidapi.com" }
They said we should use the mashape for now.