You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like from_response is expecting a different API reponse than tineye is giving now.
For example, here is the JSON from some errors I am encountering:
{"code"=>400,"messages"=>["Image too simple or too small to create unique signature"],"stats"=>{},"results"=>[]}{"code"=>401,"messages"=>["Please provide a valid API key."],"stats"=>{},"results"=>[]}
Tinplate::Error.from_response looks like it's expecting the messages array to contain a type but it does not, which means all errors are being turned into a generic Tinplate::Error with no message.
It looks like
from_response
is expecting a different API reponse than tineye is giving now.For example, here is the JSON from some errors I am encountering:
Tinplate::Error.from_response
looks like it's expecting themessages
array to contain a type but it does not, which means all errors are being turned into a genericTinplate::Error
with no message.Also there's some errors that are not handled even if this was working: https://help.tineye.com/article/181-list-of-tineye-api-error-messages
The text was updated successfully, but these errors were encountered: