Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tinify ConnectionError #5

Open
SwapnilXpanxion opened this issue Aug 9, 2022 · 0 comments
Open

Tinify ConnectionError #5

SwapnilXpanxion opened this issue Aug 9, 2022 · 0 comments

Comments

@SwapnilXpanxion
Copy link

SwapnilXpanxion commented Aug 9, 2022

Error while connecting: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (Tinify::ConnectionError)

Running TinyPngChecker on ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]

require 'rubygems'
require 'tiny_png_checker'
require 'openssl'

Tinify.key = 'API KEY'
Tinify.validate!

Tinify.from_file('IMAGE NAME').to_file('NEW IMAGE NAME')
Utils::TinyPng.mark_files('NEW IMAGE NAME')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant