xyzz / acquisition

http://get.acquisition.today/
GNU General Public License v3.0
269 stars 98 forks source link

CSRF Token expired - again and again #192

Open miizii opened 8 years ago

miizii commented 8 years ago

Hi, after a long time of use, my aquisition is getting strange.

I created a Shop in HC Talisman, and for the first 2 days, aquisition just done its job. But now, it wont update my shop anymore, bc CSRF Token expired. Shop ID and Session ID are valid. I tryed to login with my accounts eMail/Password and the Session ID from my logged in PoE Site account.( I'm not using Steam.) So i thought, ok lets create 2 new shops and empty my old ones, enter the ID's in Aquisition and it updates the new shops like 2-3 times, as it should, but then again "CSRF Token expired... " without logging out the PoE site, without restarting/closing Aquisition, or neither closing PoE. So i have to create new shops all 1-2hours, what is really annoying. Dont know how to fix this. I already cleared my Chrome cache.. used a new Browser (FF) and completely removed Aquisition and reinstalled it. but same result.

Plx help - thx :)

xyzz commented 8 years ago

What happens if you go to the forums and try to edit your shop thread via a web browser?

On 19 Dec 2015, at 13:29, miizii notifications@github.com wrote:

Hi, after a long time of use, my aquisition is getting strange

I created a Shop in HC Talisman, and for the first 2 days, aquisition just done its job But now, it wont update my shop anymore, bc CSRF Token expired Shop ID and Session ID are valid I tryed to login with my accounts eMail/Password and the Session ID from my logged in PoE Site account( I'm not using Steam) So i thought, ok lets create 2 new shops and empty my old ones, enter the ID's in Aquisition and it updates the new shops like 2-3 times, as it should, but then again "CSRF Token expired " without logging out the PoE site, without restarting/closing Aquisition, or neither closing PoE So i have to create new shops all 1-2hours, what is really annoying Dont know how to fix this I already cleared my Chrome cache used a new Browser (FF) and completely removed Aquisition and reinstalled it but same result

Plx help - thx :)

— Reply to this email directly or view it on GitHub.

miizii commented 8 years ago

I can edit my shop without any problems...

xyzz commented 8 years ago

What if you only have a single shop set up in Acquisition, does the problem persist?

miizii commented 8 years ago

yes, same issue after it updates the shop 2-3 times -.-

ShinraPoE commented 8 years ago

I have the same issue.

xyzz commented 8 years ago

Please go to %localappdata%\acquisition and pastebin last few lines of log.txt (that include the error response)

ShinraPoE commented 8 years ago

http://pastebin.com/qubn2QUt last lines of log.txt

This is not an issue, but i have to update my shop manually atm. So i have to copy shop data. But now i see, only for first shop is this possible. Can u make an option to copy multiple shop data individuelly? WARN 2015-12-22T13:39:06.972 You have more than one shop, only the first one will be copied.

xyzz commented 8 years ago

Are you sure the thread ID is correct? What is it set to in Acquisition?

ShinraPoE commented 8 years ago

Both ID's are correct. And i guess i've found a solution. I tested acquistion plus and got the same problem. ERROR 2015-12-22T14:51:41.003 An error occurred with shop 1501334: Timed out while submitting to the server. (error msg is a bit different). In acquistion plus is an option to set "shop thread timeout". i increased this timeout from 60sec to 180sec. After that my problem was fixed in acquisition plus. I noticed when updating my shop manually, that poe website takes a long time to load. I guess an option to increase shop thread timeout might work.

I havent tested enough to say it works 100% in acquistion plus. But for now it works.

Edit: I've tested now with 30sec timeout in acquisition plus and same problem as before. So increasing "shop thread timeout" is the way to solve this problem

xyzz commented 8 years ago

Please try this build: https://xyz.is/acquisition/bin/acquisition_setup_0.4a-issue-192.exe

ShinraPoE commented 8 years ago

So far everything works. gj :)

Asday commented 8 years ago

Still broken for me.

http://pastebin.com/Y03HxBXL

3 shop threads.

miizii commented 8 years ago

same here, new version didn't changed anything... feels slower, but still same error :/

http://pastebin.com/2t2DBv6n

xyzz commented 8 years ago

What if you go to "Shop -> Copy shop data to clipboard", then manually update the thread on forums? How much time does submitting the form take?

vahuid commented 8 years ago

I have the same problem for last several days.Tho worked fine at start days of newest version. PoE Forum sometimes takes longer than 30secs to edit or upload edited longer, maybe that's the problem. Also by using "Update shop thread at forums" several times it works sometimes. Maybe for some people or most if it takes longer than 30secs it gives "Can't update shop -- cannot extract CSRF token from the page. Check if thread ID is valid".

xyzz commented 8 years ago

Please try the build I've posted above in the comments.

On 27 Dec 2015, at 19:04, vahuid notifications@github.com wrote:

I have the same problem for last several days.Tho worked fine at start days of newest version. PoE Forum sometimes takes longer than 30secs last days, maybe that's the problem. Also by using "Update shop thread at forums" several times it works sometimes. Maybe for some people or most if it takes longer than 30secs it gives "Can't update shop -- cannot extract CSRF token from the page. Check if thread ID is valid".

— Reply to this email directly or view it on GitHub.

vahuid commented 8 years ago

ok, will do, thanks. It worked(i have only 1 shop)! Thanks xyzz!

miizii commented 8 years ago

edit: didnt noticed the 0.4b... worked for first update.. will give it another try later

vahuid commented 8 years ago

Maybe you installed in different directory and still running old version? Cause for me works, tested 3 times already, also xyzz released Acquisition 0.4b i see, tested this also, works also fine. And maybe if you have 2-3 shops can still cause problems?

Asday commented 8 years ago

I'm using the experimental release linked above.

miizii commented 8 years ago

noah-johnson3 commented 8 years ago

I am getting the error ERROR 2016-01-22T09:35:27.033 Can't update shop -- cannot extract CSRF token from the page. Check if thread ID is valid.

Things I have tried to do to fix it -checked multiple times that thread ID is correct, and that it is only the number not the entire url -made different thread ID's -uninstalled and reinstalled -used the above version of aquisition an admin posted -watched youtube videos on how to install it

I am really at a loss here people could really use help.