Rp 3 - An exception occurred during a WebClient

Fehler der Release-Versionen
skanthunt42
Beiträge: 22
Registriert: Mo 26. Sep 2016, 21:03
Hat sich bedankt: 8 Mal
Danksagung erhalten: 2 Mal

Rp 3 - An exception occurred during a WebClient

Beitrag von skanthunt42 »

Hallo wollte mich erkundigen ob jemand eine Lösung für mein Problem hat. Nutze einen Raspberry pi 3 mit dem Betriebssystem Jessie und die aktuelle Bot Version. Wenn ich den Bot starte bekomme ich folgende Meldung.

Code: Alles auswählen

INFO] [CORE] (Probably) Because of a non-supported TLS
implementation, dungeon/pet file updates, error reporting and
statistics are disabled.
[INFO] [CORE] Triggering error: Error: TrustFailure (The
authentication or decryption has failed.)
Danach kann ich den Bot aktivieren, dann bekomme ich jedoch folgende Fehlermeldung. Der Bot unternimmt nichts und scheint sich nicht mit dem Server verbinden zu können.

Code: Alles auswählen

11.01.2020 06:42:01 Warn Core XXXX@XX.SFGAME.DE Server exception. (Not
reachable? Message was An exception occurred during a WebClient
request.) Waiting 30 seconds and try it again..
11.01.2020 06:42:01 Warn Core XXXX@WXX.SFGAME.NET Server exception.
(Not reachable? Message was An exception occurred during a WebClient
request.) Waiting 30 seconds and try it again..
11.01.2020 06:42:01 Warn Core General System.Net.WebException: An
exception occurred during a WebClient request. --->
System.NotSupportedException: The URI prefix is not recognized.
  at System.Net.WebRequest.Create (System.Uri requestUri,
System.Boolean useUriBase) [0x000ae] in
<1a0168907d2042858c12ff7b2c118a26>:0
  at System.Net.WebRequest.Create (System.Uri requestUri) [0x00014] in
<1a0168907d2042858c12ff7b2c118a26>:0
  at System.Net.WebClient.GetWebRequest (System.Uri address) [0x00000]
in <1a0168907d2042858c12ff7b2c118a26>:0
  at de.mfbot.MFBot_NG.Basisbibliothek.Server+CookieAwareWebClient.GetWebRequest
(System.Uri address) [0x00000] in <766a6a5932b04c019478af0dbda02c05>:0
  at System.Net.WebClient.DownloadDataInternal (System.Uri address,
System.Net.WebRequest& request) [0x00013] in
<1a0168907d2042858c12ff7b2c118a26>:0
   --- End of inner exception stack trace ---
  at System.Net.WebClient.DownloadDataInternal (System.Uri address,
System.Net.WebRequest& request) [0x00072] in
<1a0168907d2042858c12ff7b2c118a26>:0
  at System.Net.WebClient.DownloadData (System.Uri address) [0x00020]
in <1a0168907d2042858c12ff7b2c118a26>:0
  at (wrapper remoting-invoke-with-check)
System.Net.WebClient.DownloadData(System.Uri)
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.sendstr
(de.mfbot.MFBot_NG.Basisbibliothek.Account acc,
de.mfbot.MFBot_NG.Basisbibliothek.Command command, System.Double
UnixStampOfCall) [0x004ea] in <766a6a5932b04c019478af0dbda02c05>:0
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.send
(de.mfbot.MFBot_NG.Basisbibliothek.Account acc,
de.mfbot.MFBot_NG.Basisbibliothek.Command cmd) [0x00114] in
<766a6a5932b04c019478af0dbda02c05>:0
11.01.2020 06:42:01 Warn Core General System.Net.WebException: An
exception occurred during a WebClient request. --->
System.NotSupportedException: The URI prefix is not recognized.
  at System.Net.WebRequest.Create (System.Uri requestUri,
System.Boolean useUriBase) [0x000ae] in
<1a0168907d2042858c12ff7b2c118a26>:0
  at System.Net.WebRequest.Create (System.Uri requestUri) [0x00014] in
<1a0168907d2042858c12ff7b2c118a26>:0
  at System.Net.WebClient.GetWebRequest (System.Uri address) [0x00000]
in <1a0168907d2042858c12ff7b2c118a26>:0
  at de.mfbot.MFBot_NG.Basisbibliothek.Server+CookieAwareWebClient.GetWebRequest
(System.Uri address) [0x00000] in <766a6a5932b04c019478af0dbda02c05>:0
  at System.Net.WebClient.DownloadDataInternal (System.Uri address,
System.Net.WebRequest& request) [0x00013] in
<1a0168907d2042858c12ff7b2c118a26>:0
   --- End of inner exception stack trace ---
  at System.Net.WebClient.DownloadDataInternal (System.Uri address,
System.Net.WebRequest& request) [0x00072] in
<1a0168907d2042858c12ff7b2c118a26>:0
  at System.Net.WebClient.DownloadData (System.Uri address) [0x00020]
in <1a0168907d2042858c12ff7b2c118a26>:0
  at (wrapper remoting-invoke-with-check)
System.Net.WebClient.DownloadData(System.Uri)
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.sendstr
(de.mfbot.MFBot_NG.Basisbibliothek.Account acc,
de.mfbot.MFBot_NG.Basisbibliothek.Command command, System.Double
UnixStampOfCall) [0x004ea] in <766a6a5932b04c019478af0dbda02c05>:0
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.send
(de.mfbot.MFBot_NG.Basisbibliothek.Account acc,
de.mfbot.MFBot_NG.Basisbibliothek.Command cmd) [0x00114] in
<766a6a5932b04c019478af0dbda02c05>:0
Was könnte das Problem sein? Liegt es an einer falschen Einstellung?

Ich danke hier schon mal für eure Bemühungen.
Zuletzt geändert von skanthunt42 am Sa 11. Jan 2020, 08:03, insgesamt 1-mal geändert.
F0restbear
Moderator
Beiträge: 1139
Registriert: Mo 8. Jun 2015, 17:36
Hat sich bedankt: 39 Mal
Danksagung erhalten: 214 Mal

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von F0restbear »

Huhu,

bespielt du den Account auf einem offiziellen S&F Server? Und falls ja, ist die richtige Adresse in der Acc.ini hinterlegt? Sprich, kein Tippfehler o.ä.?
Viele Grüße / Best regards

F0restbear
skanthunt42
Beiträge: 22
Registriert: Mo 26. Sep 2016, 21:03
Hat sich bedankt: 8 Mal
Danksagung erhalten: 2 Mal

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von skanthunt42 »

Hi,
Danke für deine schnelle Rückmeldung. Spiele auf offiziellen Servern. Hab die Schreibweise kontrolliert und sollte stimmen. Habe die Acc.ini jetzt an einem Windows Rechner probiert und sie funktioniert, jedoch am Raspberry bekomme ich immer noch die vorher erwähnte Meldung.
skanthunt42
Beiträge: 22
Registriert: Mo 26. Sep 2016, 21:03
Hat sich bedankt: 8 Mal
Danksagung erhalten: 2 Mal

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von skanthunt42 »

F0restbear hat geschrieben:Huhu,

bespielt du den Account auf einem offiziellen S&F Server? Und falls ja, ist die richtige Adresse in der Acc.ini hinterlegt? Sprich, kein Tippfehler o.ä.?
Hi, hast du vielleicht eine andere Erklärung für diese Fehlermeldung?
F0restbear
Moderator
Beiträge: 1139
Registriert: Mo 8. Jun 2015, 17:36
Hat sich bedankt: 39 Mal
Danksagung erhalten: 214 Mal

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von F0restbear »

Huhu,

entschuldige die verspätete Antwort. So gut wie jeder aus dem Team ist derzeit etwas zeitlich eingeschränkt, deshalb kann es etwas dauern bis wir antworten können.

Ich habe Robin gefragt und er meinte: Es ist höchstwahrscheinlich nicht ein Konfigurationsfehler, sondern nur ein Problem mit unserem Paket-System, das Mono-Pakte bündelt.

Es wäre super, wenn du dein System einmal updaten könntest. Falls das nicht hilft, wäre interessant zu wissen: Hast du Mono installiert und wenn ja, welche Version?
Viele Grüße / Best regards

F0restbear
Schnieteil
Beiträge: 8
Registriert: Mo 18. Mai 2020, 12:23
Hat sich bedankt: 2 Mal
Danksagung erhalten: 0

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von Schnieteil »

Ich habe vermutlich ein ähnliches Problem von meinem Linux Server aus. Hat da schon jemand eine Lösung gefunden?

Installiert habe ich Mono 6.6.0.161

Der Stacktrace wiederholt sich bis ich der bot gekillt wird.

Code: Alles auswählen

$ ./MFBot_Konsole_x86_64 
Loaded assembly
[INFO] [CORE] (Probably) Because of a non-supported TLS implementation, dungeon/pet file updates, error reporting and statistics are disabled.
[INFO] [CORE] Triggering error: Error: TrustFailure (The authentication or decryption has failed.)
> Running MFBot Konsole, MFBot 5.3.2.1 (Tilia) on Mono runtime
> Geben Sie "exit" ein um den Bot zu beenden.
/select xxx@s1.sfgame.de 

/login

> Selektierte Accounts: xxx                                                                                                                 
18.05.2020 16:18:18 Info Core xxx@S1.SFGAME.DE Logging in...
18.05.2020 16:18:21 Warn Core xxx@S1.SFGAME.DE Server exception. (Not reachable? Message was Error: TrustFailure (The authentication or decryption has failed.)) Waiting 30 seconds and try it again..
18.05.2020 16:18:21 Warn Core General System.Net.WebException: Error: TrustFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00037] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <f0057a409c774a0484f771ccbe01772e>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x00032] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <f0057a409c774a0484f771ccbe01772e>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) [0x0004b] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) [0x0000e] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000e] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0007b] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at System.Net.WebConnection.CreateStream (System.Net.HttpWebRequest request) [0x00073] in <1a0168907d2042858c12ff7b2c118a26>:0 
   --- End of inner exception stack trace ---
  at System.Net.WebClient.DownloadDataInternal (System.Uri address, System.Net.WebRequest& request) [0x00072] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at System.Net.WebClient.DownloadData (System.Uri address) [0x00020] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at (wrapper remoting-invoke-with-check) System.Net.WebClient.DownloadData(System.Uri)
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.sendstr (de.mfbot.MFBot_NG.Basisbibliothek.Account acc, de.mfbot.MFBot_NG.Basisbibliothek.Command command, System.Double UnixStampOfCall) [0x0050a] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.send (de.mfbot.MFBot_NG.Basisbibliothek.Account acc, de.mfbot.MFBot_NG.Basisbibliothek.Command cmd) [0x00114] in <919407374df9421785e1f21fb76b20dd>:0 
18.05.2020 16:18:51 Warn Core xxx@S1.SFGAME.DE Try to send again..                                                                         
18.05.2020 16:18:52 Warn Core xxx@S1.SFGAME.DE Server exception. (Not reachable? Message was Error: TrustFailure (The authentication or decryption has failed.)) Waiting 30 seconds and try it again..
18.05.2020 16:18:52 Warn Core General System.Net.WebException: Error: TrustFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a
  at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) [0x00037] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) [0x00000] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) [0x00071] in <f0057a409c774a0484f771ccbe01772e>:0 
   --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) [0x00032] in <f0057a409c774a0484f771ccbe01772e>:0 
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) [0x0000c] in <f0057a409c774a0484f771ccbe01772e>:0 
   --- End of inner exception stack trace ---


Folgenden Fehler habe ich auch noch, wenn ich das Terminal nicht auf xterm stelle. Hängen die eventuell zusammen?

Code: Alles auswählen

 $ echo $TERM
xterm-256color
 $ ./MFBot_Konsole_x86_64 

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.ConsoleDriver..cctor () [0x0004d] in <a6f810169ec746eeb2789b925e2858c0>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.Console..cctor () [0x0008e] in <a6f810169ec746eeb2789b925e2858c0>:0 
   --- End of inner exception stack trace ---
  at BasisFightSimulation.FightSimulationAssemblyLoader.Load () [0x00000] in <c79e4c4647844c198901b52f28cbdf3b>:0 
  at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00000] in <4b9d087ed9d5499c83f266e6981f7a74>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.ConsoleDriver..cctor () [0x0004d] in <a6f810169ec746eeb2789b925e2858c0>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a6f810169ec746eeb2789b925e2858c0>:0 
  at System.Console..cctor () [0x0008e] in <a6f810169ec746eeb2789b925e2858c0>:0 
   --- End of inner exception stack trace ---
  at BasisFightSimulation.FightSimulationAssemblyLoader.Load () [0x00000] in <c79e4c4647844c198901b52f28cbdf3b>:0 
  at de.mfbot.MFBot_NG.Konsole.Program.Main (System.String[] args) [0x00000] in <4b9d087ed9d5499c83f266e6981f7a74>:0 
 $ export TERM=xterm
 $ ./MFBot_Konsole_x86_64 
Loaded assembly
F0restbear
Moderator
Beiträge: 1139
Registriert: Mo 8. Jun 2015, 17:36
Hat sich bedankt: 39 Mal
Danksagung erhalten: 214 Mal

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von F0restbear »

Huhu,

da sich die ersten Zeilen der Fehlermeldung mit denen aus dem Thread Eingang decken, würde ich dir auch erstmal vorschlagen, Mono zu updaten. Soweit ich das sehe, ist 6.8 die neuste Version.
Viele Grüße / Best regards

F0restbear
Schnieteil
Beiträge: 8
Registriert: Mo 18. Mai 2020, 12:23
Hat sich bedankt: 2 Mal
Danksagung erhalten: 0

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von Schnieteil »

oh tatsächlich. es gibt schon ne neue version. mein paketmanager kennt die garnicht, aber morgen hab ich zeit zum copmilieren.
vielen dank
Schnieteil
Beiträge: 8
Registriert: Mo 18. Mai 2020, 12:23
Hat sich bedankt: 2 Mal
Danksagung erhalten: 0

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von Schnieteil »

MIt der neuen Mono Version kommt auch ein neuer Fehler.
Also der Fehler wenn das TERM xterm-256color ist bleibt und beim starten kommt folgender Fehler.

Code: Alles auswählen

Loaded assembly
[INFO] [CORE] (Probably) Because of a non-supported TLS implementation, dungeon/pet file updates, error reporting and statistics are disabled.
[INFO] [CORE] Triggering error: An exception occurred during a WebClient request.
> Running MFBot Konsole, MFBot 5.3.2.1 (Tilia) on Mono runtime
19.05.2020 15:40:02 Warn Core General
   !##libc
   !##  at (wrapper managed-to-native) System.Net.NetworkInformation.CommonUnixIPGlobalProperties.getdomainname(byte[],int)
  at System.Net.NetworkInformation.CommonUnixIPGlobalProperties.get_DomainName () [0x0000b] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at System.Net.CookieContainer..ctor () [0x0003f] in <1a0168907d2042858c12ff7b2c118a26>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Server+CookieAwareWebClient..ctor () [0x00000] in <919407374df9421785e1f21fb76b20dd>:0 
  at (wrapper remoting-invoke-with-check) de.mfbot.MFBot_NG.Basisbibliothek.Server+CookieAwareWebClient..ctor()
  at de.mfbot.MFBot_NG.Basisbibliothek.Server..ctor (System.String url) [0x00000] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Server..ctor (System.String url, System.String[] param) [0x00000] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Server.createServer (System.String url, System.String[] param) [0x00093] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Account.Initialize () [0x00055] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Account..ctor (de.mfbot.MFBot_NG.Basisbibliothek.Settings data, System.Boolean initialize) [0x00061] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Bot.load () [0x000cd] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.Bot.get_CurrentBot () [0x00011] in <919407374df9421785e1f21fb76b20dd>:0 
  at de.mfbot.MFBot_NG.Konsole.Program.Run () [0x00066] in <4b9d087ed9d5499c83f266e6981f7a74>:0 
  at de.mfbot.MFBot_NG.Basisbibliothek.BaseProgram.start (System.Action methodToRun) [0x000b2] in <919407374df9421785e1f21fb76b20dd>:0 
Laut ldd und strace ist libc erfolgreich geladen. Kann es sein, dass es gegen eine andere libc version compiliert wurde? Ich benutze 2.30-r8
Benutzeravatar
TakeViagraDieHard
Spender
Beiträge: 140
Registriert: Fr 29. Jun 2018, 21:53
Wohnort: NRW
Hat sich bedankt: 14 Mal
Danksagung erhalten: 46 Mal

Re: Rp 3 - An exception occurred during a WebClient

Beitrag von TakeViagraDieHard »

Versuch mal folgende Befehle auszuführen und ob es danach klappt:

Code: Alles auswählen

sudo apt install referenceassemblies-pcl
sudo apt install ca-certificates-mono
sudo cert-sync
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste