Skip to content
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

rest.pull_item with vault=True not working as expected #418

Closed
NoahDReifsnyder opened this issue Jun 20, 2024 · 6 comments
Closed

rest.pull_item with vault=True not working as expected #418

NoahDReifsnyder opened this issue Jun 20, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@NoahDReifsnyder
Copy link

Long story short.

When supplying vault=True to rest.pull_item, the item is pulled to character inventory instead.

Expected Result

The item should have been pulled directly to vault, or at least pulled to character and then to vault

Actual Result

item was pulled to inventory and left there

Platform + aiobungie(version) Info

Running on Windows 11, python 3.12, with aiobungie version 0.2.11

Further info

From my inspection of the Destiny2 API, I'm not sure if moving directly from postmaster to Vault is even possible. If it is not possible, aiobungie documentation should reflect that. The documentation currently says you can supply vault=True to pull_item to have the item go to vault

@NoahDReifsnyder NoahDReifsnyder added the bug Something isn't working label Jun 20, 2024
@nxtlo
Copy link
Owner

nxtlo commented Jun 20, 2024

for the postmaster part im pretty sure its possible but it'll require two requests, the first is to pull the item, the second is transfring the item with valut option. so you basically pull the item to the character then transfer it to the valut.

edit: i think i misunderstood your question, but the response above should solve this problem, and yes the vault option shouldn't be there. so i'll just remove it

@NoahDReifsnyder
Copy link
Author

I'm currently using two requests as you described, but I would like a way to not disturb character inventory if possible. (also it's nice to keep requests as low as possible)

@NoahDReifsnyder
Copy link
Author

I get around not disturbing inventory (if its full already) by moving an item from character to vault, pulling from postmaster to character, moving postmater item from character to vault, and then returning the original item from vault to character. If these 4 requests could be condensed to one (a direct move from postmaster to the vault) that would be a great improvement.

@nxtlo
Copy link
Owner

nxtlo commented Jun 20, 2024

ok this issue has been resolved and pushed to master, i kept the vault option since i've seen that its useful.

it basically perform an extra HTTP request to do what you described, only if this option set to True
but you should read the documentation about this option again as well and what it actually does.

you may close issue this whenever your issue is resolved.

@nxtlo
Copy link
Owner

nxtlo commented Jun 20, 2024

(a direct move from postmaster to the vault)

that would be pretty usefull i agree, but i don't think there's any other way besides what you just described.

@NoahDReifsnyder
Copy link
Author

Appreciate you looking into it! ill close now, and continue using the multi step process going forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants