flickr-downloadr / flickr-downloadr-gtk

A cross-platform desktop app, written in Mono that would download (all or selected) photos from your photostream in their selected size along with their description, title and tags.
https://flickrdownloadr.com/
MIT License
177 stars 41 forks source link

fatal error / web request to flickr failed #92

Closed norayr closed 5 years ago

norayr commented 5 years ago

hello, if this is a duplicate, please close.

so i run it on two machines, one - gentoo, another is funtoo, very similar system. both have mono and gtk-sharp installed.

run log is https://paste.pound-python.org/show/HKrrgU2PxWeyPyVKxPNv/

norayr commented 5 years ago

i can paste the log here as well

noch@aygepar ~/flickrdownloadr $ ./flickrdownloadr 
Mozilla Roots Importer - version 5.4.1.6
Download and import trusted root certificates from Mozilla's MXR.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

WARNING: mozroots is deprecated, please move to cert-sync instead.

Downloading from 'https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt'...
WARNING: Downloading the trusted certificate list couldn't be done securely (error: RemoteCertificateChainErrors), continuing anyway. If you're using mozroots to bootstrap Mono's trust store on a clean system this might be OK, otherwise it could indicate a network intrusion. Please ensure you're using a trusted network or move to cert-sync.
Importing certificates into user store...
150 new root certificates were added to your trust store.
Import process completed.

Fatal Error: DotNetOpenAuth.Messaging.ProtocolException: Web request to 'https://www.flickr.com/services/oauth/request_token' failed. ---> System.Net.WebException: Error: TrustFailure (One or more errors occurred.) ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
  at /var/tmp/portage/dev-lang/mono-5.4.1.6/work/mono-5.4.1.6-abi_x86_64.amd64/external/boringssl/ssl/handshake_client.c:1132
  at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00038] in <4229506c1c96445b8e95f2a8215a82f7>:0

  at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status) [0x0003c] in <4229506c1c96445b8e95f2a8215a82f7>:0 
  at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream:ProcessHandshake (Mono.Net.Security.AsyncOperationStatus)
  at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00006] in <4229506c1c96445b8e95f2a8215a82f7>:0 
  at Mono.Net.Security.AsyncProtocolRequest+<ProcessOperation>d__24.MoveNext () [0x000ff] in <4229506c1c96445b8e95f2a8215a82f7>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ae60a710a4744d16826a514602b7b8ed>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at Mono.Net.Security.AsyncProtocolRequest+<StartOperation>d__23.MoveNext () [0x0008b] in <4229506c1c96445b8e95f2a8215a82f7>:0 
   --- End of inner exception stack trace ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at Mono.Net.Security.MobileAuthenticatedStream+<ProcessAuthentication>d__47.MoveNext () [0x00254] in <4229506c1c96445b8e95f2a8215a82f7>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <ae60a710a4744d16826a514602b7b8ed>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <ae60a710a4744d16826a514602b7b8ed>:0
  at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000d] in <4229506c1c96445b8e95f2a8215a82f7>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0007b] in <4229506c1c96445b8e95f2a8215a82f7>:0 
  at System.Net.WebConnection.CreateStream (System.Net.HttpWebRequest request) [0x00073] in <4229506c1c96445b8e95f2a8215a82f7>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetRequestStream (System.IAsyncResult asyncResult) [0x0003a] in <4229506c1c96445b8e95f2a8215a82f7>:0 
  at System.Net.HttpWebRequest.GetRequestStream () [0x0004e] in <4229506c1c96445b8e95f2a8215a82f7>:0
  at DotNetOpenAuth.Messaging.StandardWebRequestHandler.GetRequestStreamCore (System.Net.HttpWebRequest request) [0x00007] in <5852d57ad15a48a4862386ad9fdf1951>:0 
   --- End of inner exception stack trace ---
  at FloydPink.Flickr.Downloadr.UI.Windows.BaseWindow+<>c__DisplayClass3_0.<HandleException>b__0 (System.Object <p0>, System.EventArgs <p1>) [0x00000] in <9fd91914e0084e658662b1d8e5070801>:0 
  at Gtk.Application+InvokeCB.Invoke () [0x00001] in <4db68e44f7af441ca6fbe4aaaec5d131>:0 
  at GLib.Timeout+TimeoutProxy.Handler () [0x0000e] in <e8bea7a6f3c146b0a6aeded26315dc07>:0  ... False\
norayr commented 5 years ago

this happens when i press login button after the program start.

floydpink commented 5 years ago

I believe this is the issue that you're running into:

Mozilla Roots Importer - version 5.4.1.6
Download and import trusted root certificates from Mozilla's MXR.
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

WARNING: mozroots is deprecated, please move to cert-sync instead.

Downloading from 'https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt'...
WARNING: Downloading the trusted certificate list couldn't be done securely (error: RemoteCertificateChainErrors), continuing anyway. If you're using mozroots to bootstrap Mono's trust store on a clean system this might be OK, otherwise it could indicate a network intrusion. Please ensure you're using a trusted network or move to cert-sync.
Importing certificates into user store...
150 new root certificates were added to your trust store.
Import process completed.

Can you try running the cert-sync command on a terminal to figure out and run the equivalent for this below command (that is now deprecated)? I do not know which one that would be off the top of my head.

mozroots --import --sync
norayr commented 5 years ago

heeey, i run

cert-sync /etc/ssl/certs/ca-certificates.crt

as root, and now it works. (: