-
Notifications
You must be signed in to change notification settings - Fork 308
Trader tool: OAuth support, match mods by tradeHash (fixes many local and essence mods), add price sorting, add radius jewels, notice when rate limited #1801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
vaisest
wants to merge
45
commits into
PathOfBuildingCommunity:dev
Choose a base branch
from
vaisest:trader-tool-port
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
033bcf9
Apply changes from https://github.com/PathOfBuildingCommunity/PathOfB…
oboking 7a26224
Add missing variables required for compare
vaisest 0342beb
Update compare calcs tab for poe2
vaisest a2ffc56
Fix incorrect stat set control handlers
vaisest 1194111
Use correct realm for comparison trade
vaisest 3df428e
Remove crucible and scourge mods from compare trader
vaisest 3283e06
Fix comparison tool issues with local vs global mods, inverted values
vaisest 0afacf1
Change tradehash exports to export a map of hash to stat description …
vaisest 360cfb8
Fix radius jewels, charms, and desecrate-only mods in comparison trader
vaisest 80fcaa1
Add comparison stat set selector
vaisest 2a4dc7f
Fix comparison minion control anchor
vaisest 75a96c2
Fix stages in comparison tab
vaisest 787b518
remove .rej file
vaisest 14266cc
Deduplicate trade category code. Fixes poe2 category differences for …
vaisest 77ef3dc
port compatible trader tool changes from pob1
vaisest d12a45c
Fix corrupted mods being fractured mods in trade mod generation
vaisest 3131840
Fix radius jewel weight generation
vaisest 1ac917f
Regenerate QueryMods.lua
vaisest b4315ef
convert trade tool mod weight generation to use tradeHash
vaisest 91d975e
wip: change poesessid to bearer token
vaisest 288dceb
Cleanup: remove extra logout button and fix poeapi comments
vaisest f28fa02
Fix trader crash when rate limited on startup
vaisest d6d78af
Use https://poe.ninja/poe2/api/economy/exchange/current/overview for …
vaisest c6c8d06
Fix poe.ninja tests
vaisest ebcb817
Fix trader section anchor
vaisest 1553d5f
Adjust price scaling factor due to things being in divs (still an abi…
vaisest 9c09f8c
Clarify price options and rate limit waits, and use Retry-After for r…
vaisest cba3435
rate limiting pls work
vaisest ac1658f
Fix perfect essences not appearing in generated weights, and regenera…
vaisest 0e738c4
Fix tradehashes for radius jewels
vaisest f259ad1
Improve rate limit countdown to prevent simplegraphic suspension prob…
vaisest d26ffef
Fix debug print causing crash, and remove extra debug print
vaisest dd080e9
disable wiping trader controls to fix crash when it is closed and a s…
vaisest f9247f2
Add note about doing weird filter requirements (e.g. adorned)
vaisest 187f537
remove whisper for instant buyout items
vaisest 261745a
make cspell happy
vaisest f255e5f
Fix database radius jewels being nonfunctional
vaisest 27f7843
Fix currency conversion button not being updated after reopening trad…
vaisest 5b6896c
Avoid useless search in "search for" button
vaisest a2d69e0
fix api error on invalid token
vaisest 7f0b4b0
disable reuseaddr
vaisest 1cbce0b
Rework OAuth server launch code to avoid shared port usage
Wires77 edd0dc4
Remove error code on login and fix hanging item slot controls in trad…
vaisest 1bddcdc
Fix QueryMods.lua generation. Change soulcores.lua to export trade ha…
vaisest 533641d
Add note about trade hashes
vaisest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seemed to make PoB think it's listening on the first port when another program was already listening, which meant the key goes to the wrong program
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I thought I tested this specifically since it's a security issue, but I can check again. Regardless, the right fix for this would likely be to use the option in LaunchServer.lua instead:
server:setoption(option [, value])from https://lunarmodules.github.io/luasocket/tcp.htmlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again, you can see PoB change port to an unused one if a server is running elsewhere:

Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've figured out the root issues here:
http://localhostfrom GGG's server due to their implementation restrictions*) with LuaSocket will still connect because that address is not conflicting with 127.0.0.1 (apparently)So in this case:
python3 -m http.server -b 127.0.0.1 49082::as IPv6http://localhostreaches the python server instead because localhost resolves to the IPv4 address and serverForcing IPv4 revealed the other issue, where

0.0.0.0doesn't conflict with127.0.0.1when binding to the port (at least on Windows). This picture reveals some of the results. Port 49083 was the only one that works properly.Here's the fix to go into LaunchServer.lua: