PoE-TradeMacro / POE-TradeMacro

Price checking script for Path of Exile.
https://poe-trademacro.github.io/
GNU General Public License v3.0
938 stars 189 forks source link

TradeMacro 2.5.5 weird behavior #534

Closed steelbacon closed 6 years ago

steelbacon commented 6 years ago

Version 2.5.5 force PoE client from Windowed Fullscreen to Windowed mode, have to manually change the setting again to get the client back to Windowed Fullscreen.

While starting the script, cannot do anything but update, which fails to

" Parsing the currency data (json) from poe.ninja failed. This should only happen when the servers are down / unavailable.

Using archived data from a fallback file.league: "league".

This can fix itself when the servers are up again and the data gets updated automatically or if you restart the script at such a time. "

Been like this for 3 days, have not tried to manually install 2.5.6 version yet, just wanted report the errors i have received.

Picture of the error in question and my Startup log as follows:

9a3dd92b1499bfa3e609b005d707ea36

Starting up PoE-TradeMacro....


2017-10-01T10:44Z

Requesting leagues from api.pathofexile.com...

cURL command: "D:\pelikamaa\POE-TradeMacro-2.5.5\lib\curl.exe" "http://api.pathofexile.com/leagues?type=main" -ILks -H "Host:api.pathofexile.com" -H "Connection:keep-alive" -H "Cache-Control:max-age=0" -H "Content-type:application/x-www-form-urlencoded; charset=UTF-8" -H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8" -H "User-Agent:Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"

Answer: HTTP/1.1 302 Found Server: nginx/1.8.1 Date: Sun, 01 Oct 2017 10:44:21 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Set-Cookie: POESESSID=36c9966aad1d83c8070974aa1e6c3df5; path=/; domain=.pathofexile.com; HttpOnly Location: /login/?redir=%2Fleagues%3Ftype%3Dmain X-Frame-Options: SAMEORIGIN

HTTP/1.1 404 Server: nginx/1.8.1 Date: Sun, 01 Oct 2017 10:44:21 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Set-Cookie: POESESSID=ac86233db68b8800c5f9243a437bdc4c; path=/; domain=.pathofexile.com; HttpOnly


2017-10-01T10:44Z

Testing CloudFlare bypass, connecting to http://poe.trade...

cURL command: "D:\pelikamaa\POE-TradeMacro-2.5.5\lib\curl.exe" "http://poe.trade" -ILks -H "User-Agent:Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" -H "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8" -H "Accept-Encoding:gzip, deflate" -H "Accept-Language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4" -H "Connection:keep-alive" -H "Host:poe.trade" -H "Upgrade-Insecure-Requests:1"

Answer: HTTP/1.1 200 OK Date: Sun, 01 Oct 2017 10:44:23 GMT Content-Type: text/html; charset=utf-8 Connection: keep-alive Set-Cookie: __cfduid=d20bfe4f9a2bd8c6b81c3bc4b23833a5c1506854663; expires=Mon, 01-Oct-18 10:44:23 GMT; path=/; domain=.poe.trade; HttpOnly X-Frame-Options: DENY Content-Encoding: gzip Server: cloudflare-nginx CF-RAY: 3a6ed390865d5b1b-HEL

ghost commented 6 years ago

Right now, the trade macro can't pull Perma HARDCORE data from ninja. Not a program bug, but a site issue.

This would also happen on 2.5.6

Raynarth commented 6 years ago

Same here, it's a problem that message or we can ignore?

byg0n3 commented 6 years ago

Well, it looks like something went wrong with the base url http://poeninja.azureedge.net (I've faced a problem with resolving dns for it). You can temporary fix it locally:

steelbacon commented 6 years ago

Changing the url lines from 2 files from poeninja.azureedge.net to poe.ninja/ worked for me, however for some reason, when i start the script it changes my PoE Display Mode from Windowed Fullscreen to Windowed.

still have no clue why the script forces client Display Mode change

oh than thank you dein0s for the suggestion to change the url in the files :)

byg0n3 commented 6 years ago

I doubt that the TradeMacro script can do that in any way. Maybe you accidentally hit Alt-Enter combination?

steelbacon commented 6 years ago

nah, just start the script, click to activate PoE window and it does that, few times froze my PoE completely, had to kill the game, albeit it could be an unrelated problem that just coincidentally happens at the same time, but it's only when i start the TradeMacro

artsy23 commented 6 years ago

please help im having this error to

byg0n3 commented 6 years ago

@artsy23 there's a solution few comments above.

Eruyome commented 6 years ago

Poe.ninja changed the api url, the script falls back to a hardcoded currency data file in that case. Making a release to fix it.

steelbacon commented 6 years ago

ah sweet, i'll test it if the update is available tomorrow

ghost commented 6 years ago

Edit @ 22:28 PDT: Fixed. Stable app. Perm HC data is now being sent as it should be.

It's a LOT slower now. (Takes a minute longer than normal.) The issue with the Ninja site has been fixed (though they're still having issues with their site.)

Tested with 2.5.7 with the latest AHK (32/64 bit version)

Log: https://pastebin.com/KG4J7EfW | This does not show the delay from "finished setting up" to "Finished loading, ready to go."

Edit: If you switch leagues (via Ctrl-L), that'll also take a minute. EACH TIME. There is a 25% chance each time you switch leagues for this to take much longer (ninja site-based issue.)

steelbacon commented 6 years ago

ah, let's hope they fix the problems with the site, thank you for informing us :)

ghost commented 6 years ago

This has been fixed.

steelbacon commented 6 years ago

yep, it's fixed, didn't realize to check if the thingy still does the display mode change in the client for me tho, but that's a minor inconvenience, thank you for awesome support :)