flickr / flickr-sdk

Almost certainly the best Flickr API client in the world for node and the browser
https://www.flickr.com/services/api
MIT License
131 stars 29 forks source link

./examples/oauth.js "Secure Connection Failed" #136

Closed oluc closed 3 years ago

oluc commented 4 years ago

I'm trying ./examples/oauth.js I get the flickr page, and after I click [OK, I'LL AUTHORIZE IT], I get a "Secure Connection Failed" page

Any hint?

Secure Connection Failed

An error occurred during a connection to localhost:3000. PR_END_OF_FILE_ERROR

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.
oluc commented 4 years ago

using an https server, with self-signed certificate, allows to go through the authentication process and get the oauth token.

See attached patch flickr-sdk_examples_oauth.js__use-https.patch.txt