Procurement-PoE / Procurement

Path Of Exile Character & Stash Management Tool
Artistic License 2.0
331 stars 133 forks source link

Error Cloud flare #1104

Closed HarkMorun closed 4 years ago

HarkMorun commented 4 years ago

I used it for 5 days and now it doesn't work anymore. Update to the latest version, change the SsID to a new one and wait one day. still not working

[22-04-2020 13:45] Failed to build HTTP request and get response for: method=GET, url='https://www.pathofexile.com/login', allowAutoRedirects=, requestData='': Error en el servidor remoto: (503) Servidor no disponible. [22-04-2020 13:45] System.Exception: Cloud flare clearance failed, please wait one minute and try again ---> System.AggregateException: Se han producido uno o varios errores. ---> CloudflareSolverRe.Exceptions.CloudflareClearanceException: Clearance failed after 3 attempt(s). en CloudflareSolverRe.ClearanceHandler.d20.MoveNext() --- Fin del seguimiento de la pila de la excepción interna --- en System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) en POEApi.Transport.HttpTransport.CloudFlareSessionIdLogin() --- Fin del seguimiento de la pila de la excepción interna --- en POEApi.Transport.HttpTransport.CloudFlareSessionIdLogin() en POEApi.Transport.HttpTransport.Authenticate(String email, SecureString password) en POEApi.Model.POEModel.Authenticate(String email, SecureString password, Boolean offline, String realm) en Procurement.ViewModel.LoginWindowViewModel.<>cDisplayClass23_0.b__0() en System.Threading.Tasks.Task.Execute()

thailyn commented 4 years ago

It looks like CloudFlare changed their authentication process again (GGG uses CloudFlare for handling authentication on their website and on the API). The library Procurement uses appears to be working on a solution. I'll follow up with it when I get a chance, and create a patched version of Procurement, as I did with the last change.

HarkMorun commented 4 years ago

thank you very much for the work and the inconvenience

ifkvothe commented 4 years ago

yesterday I was able to login but today it definitely doesn't work

Monisssska commented 4 years ago

I have the same problem since yesterday it does not work.

leoclaro commented 4 years ago

I have the same problem since yesterday it does not work too.

HarkMorun commented 4 years ago

https://github.com/Stickymaddness/Procurement/issues/1104#issuecomment-617909950

Algosistaken commented 4 years ago

I have the same problem. It was very good program for trading. Please fix it.

ZakDolan commented 4 years ago

Same problem here with the same timing.

thailyn commented 4 years ago

There is a new version of a fork of the Cloudflare library Procurement uses that appears to resolve this issue (I tested it and I can log in). I've updated my patched version of Procurement in #1093 to use it. You can download an updated version of Procurement at this link. (Valid for six months from now.)

Monisssska commented 4 years ago

it work! thx :)

kevinloh commented 4 years ago

I tried thailyn's version of Procurement. While it didn't give the Cloud Flare error, it gave this error instead: [Error] One or more errors occurred.

Found this in DebugInfo.log:

[12-05-2020 20:43] Failed to build HTTP request and get response for: method=GET, url='https://www.pathofexile.com/login', allowAutoRedirects=, requestData='': The remote server returned an error: (503) Server Unavailable. [12-05-2020 20:43] System.AggregateException: One or more errors occurred. ---> System.FormatException: Input string was not in a correct format. at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) at CloudflareSolverRe.Types.Javascript.JsFuck.DecodeNumber(String encodedNumber) at CloudflareSolverRe.Types.Javascript.JsCalculation.Solve() at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable1 source, TAccumulate seed, Func3 func) at CloudflareSolverRe.Types.Javascript.JsChallenge.Solve() at CloudflareSolverRe.Solvers.JsChallengeSolver.d__7.MoveNext() --- End of stack trace from previous location where exception was thrown ---

thailyn commented 4 years ago

Hey, @kevinloh, that looks like an error that is fixed with the latest patched version I created (it's confusing, since I've made at least three patched versions). Please try the version of Procurement you can download from the initial description in PR #1093, and let us know if you continue to have issues. Thanks!

kevinloh commented 4 years ago

That worked! Thank you.

Stickymaddness commented 4 years ago

Procurement 1.29.0 has been released, which includes @thailyn's fixes as per the build he provided above.