metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
203 stars 116 forks source link

[Bug]: Bundlr withdraw "withdrawal request validation failed" #478

Open devtonic0 opened 4 months ago

devtonic0 commented 4 months ago

Issue description

Issue: When "sugar bundlr withdraw" is run, "🛑 Error running command (re-run needed): Failed to complete withdraw (withdrawal request validation failed)" To reproduce: Have a wallet with a bundlr balance, try to withdraw.

Have had this issue for years, but looking over some of my old wallets I now have a large amount of sol stuck in bundlr, is there any other way to withdraw this balance?

Relevant log output

No response

Priority this issue should have

Medium (should be fixed soon)

csa1234 commented 3 months ago

I'm facing this issue right now. Sugar debited from my wallet 6.70 $SOL and now it doesn't allow me to withdraw

samuelvanderwaal commented 3 months ago

I'm facing this issue right now. Sugar debited from my wallet 6.70 $SOL and now it doesn't allow me to withdraw

What's the wallet address you're trying to withdraw for?

csa1234 commented 3 months ago

HBWRBVndpKZjAS6VFSSAdb93PB1pZfLZSn5QkDYGvn8k thats my wallet, it did finished upload the images to bundlr but the remaining cant be withdraw, is there anyway to withdraw it?

devtonic0 commented 3 months ago

I'm actually surprised this hasn't been addressed yet. I've got 20+ wallets with sol stuck in the bundlr balance, haven't been able to find any info. Some of my wallets have 6+ sol in bundlr balance from large collections

csa1234 commented 3 months ago

It's getting worst. While I was performing sugar deploy I got error 429 gateway error due to mainnet-beta overlimit API calls... Suddenly it stopped out and my cache.json with over 7MB of bundlr (Arweave) hashes went corrupted overwriting the file and leaving only 5kb of hashes.

Now not only I can't withdraw but MY COMPLETE HASHES of 15.000 NFT wiped out

I paid $1000 of bundlr storage and got wiped out. I'm totally devastated, I don't know what I'm gonna do.

samuelvanderwaal commented 3 months ago

It's getting worst. While I was performing sugar deploy I got error 429 gateway error due to mainnet-beta overlimit API calls... Suddenly it stopped out and my cache.json with over 7MB of bundlr (Arweave) hashes went corrupted overwriting the file and leaving only 5kb of hashes.

Now not only I can't withdraw but MY COMPLETE HASHES of 15.000 NFT wiped out

I paid $1000 of bundlr storage and got wiped out. I'm totally devastated, I don't know what I'm gonna do.

You should definitely not be using a public RPC for high-volume calls as they severely rate-limit. The Metaplex docs have a list of RPC providers: https://developers.metaplex.com/rpc-providers.

As far as withdrawing from Irys/Bundlr, it looks like the method for verifying may have changed on Bundlr's end as the Sugar command is just making a POST request to their nodes. You could try using their CLI for withdrawing to see if you can recover your funds.

csa1234 commented 3 months ago

And how about recovering the hashes from overwriten cache.json? Is there a way I can recover them?

JesseTheRobot commented 3 months ago

Hey @devtonic0 , dev from Bundlr/Irys here - are you able to share the address(es) you're trying to withdraw balance with so I can check the logs on our end? We can set up private comms if you'd prefer.

csa1234 commented 3 months ago

Just to update my case. It got resolved thanks to the support of Irys/bundlr JesseTheRobot and Metaplex Tony. Boyle

Jesse was able to help me rebuild and recover my cache with Tony support. Outstanding team, outstanding.

JesseTheRobot commented 3 months ago

@devtonic0 I've deployed a fix for this issue - are you able to confirm that you are able to withdraw without issue?

devtonic0 commented 2 months ago

@devtonic0 I've deployed a fix for this issue - are you able to confirm that you are able to withdraw without issue?

hey sorry for the super delayed response, but no, now im getting a new error " -> lamports: 235080239 (◎ 0.235080239)

[2/2] 🏧 Withdrawing funds

Withdraw failed.

🛑 Error running command (re-run needed): Failed to complete withdraw (Not Found) "

JesseTheRobot commented 2 months ago

@devtonic0 are you still getting this error?

csa1234 commented 2 months ago

@devtonic0 are you still getting this error?

Got it working and was able to withdraw successfully. Very nice job Jesse. Keep it coming.