aRTy42 / POE-ItemInfo

Item Info Script for Path of Exile
167 stars 225 forks source link

error trying to run the script #66

Closed aengis closed 7 years ago

aengis commented 7 years ago

2017-02-15_142124

"unexpected message or incorrect format"

autohotkey version 1.1.24.05

Eruyome commented 7 years ago

Does this always happen?

aengis commented 7 years ago

yes, every time....

but the main script still runs ( didnt notice until today), and stays on the menu bar

win xp 32b sp3 no firewall already tryed to add it to the anti viruts safe list, just in case... no changes.

aRTy42 commented 7 years ago

I tried running the script in xp compatibility mode and also in 32 bit, but I can't reproduce the error.

Just to be sure (because of your file path): You unzipped the whole download and you are running the "POE-ItemInfo.ahk" file?

aengis commented 7 years ago

yes, i unzipped it and i am running the main script with right click run script

Eruyome commented 7 years ago

I'm a bit curious, do you also have this problem running TradeMacro https://github.com/PoE-TradeMacro/POE-TradeMacro/releases? You probably have but I want to make sure.

EDIT: If that's the case you could edit TradeMacros config file config_trade.ini. You can't get the script started, so you probably can't use the settings menu, so do it manually. This file is being created in the main script root folder on scriptstart. There's the key/value pair ShowUpdateNotifications = 1, change it to 0 to skip the update check. ItemInfo simply uses a default of 1 here while TradeMacro actually can change this option. Of course you can also find the line ShowUpdateNotification := 1 in the ItemInfo code and change it to 0 to test it, but this isn't a long term solution.

There's probably something wrong with the WinHTTP request but I can't say yet what exactly, this may need giving you a a dev version with more debug output but I'm trying to release a TradeMacro 2.0 beta today so I'm a bit more focused to do that first.

If you have problems with all WinHTTP requests you can't use TradeMacro, you could use ItemInfo though as long as you skip the UpdateCheck.

aengis commented 7 years ago

yup, error, gonna try the fix 2017-02-19_143242

ok, the error on trademacro changed and got this.... i dont have any cookies on IE so it mighty be the reason. 2

the problem concerning itemInfo is not urgent since the script runs, even when it cant update himself.

Eruyome commented 7 years ago

It seems that you simply have problems with all WinHTTp requests, they all fail. WinHttp is used to download all kinds of information and the poe.trade pages. This is not cookie related.

aengis commented 7 years ago

2017-02-20_112758

Eruyome commented 7 years ago

http://superuser.com/questions/558070/how-to-turn-off-winhttp-proxy

I really forgot about this... https://github.com/POE-TradeMacro/POE-TradeMacro/wiki/FAQ "2. Cloudflare Bypass (Cookies) issues":

9. TradeMacro uses WinHTTPRequest 5.1 to connect to poe.trade/Github. WinHTTP has it's own proxy settings, the default settings don't use any proxy server but this could have been changed on your system. You can check this by opening a windows console window and executing:
netsh winhttp show proxy
If this lists any proxy servers instead of "DirectAccess (no proxy server)" you can reset this proxy.

According to this it is setup correctly. Not sure if that registry path is really missing...

Eruyome commented 7 years ago

You could download the latest code https://github.com/PoE-TradeMacro/POE-TradeMacro/archive/devEru.zip and use resources\tests\Test_WinHTTPRequest.ahk. I added this to test download problems with some debug output, not sure if it helps.

EDIT: Btw, I have that registry path and key.

aengis commented 7 years ago

cant turn off the winhttp since it seems i have none installed :P

Eruyome commented 7 years ago

Well, try to install (re-install) it then :p

aengis commented 7 years ago

i've been trying to find the package, but since there is no longer support for XP, the windowsxp-kb842773-v2-x86-esn ( winhttp 5.1 ) is impossible to find :(

Eruyome commented 7 years ago

Hm, that's too bad. At least ItemInfo is working for you when disabling updates. I should implement a fallback for all WinHTTP requests using UrlDownloadToFile if that fails. This would work for ItemInfo (always) and TradeMacro unless someday poe.trade has cloudflare protection again so that I have to send a useragent and cookies.