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

Unable to fetch txid, Probably old transaction where api fails. #348

Open
N11cK opened this issue Apr 3, 2024 · 3 comments
Open

Unable to fetch txid, Probably old transaction where api fails. #348

N11cK opened this issue Apr 3, 2024 · 3 comments

Comments

@N11cK
Copy link

N11cK commented Apr 3, 2024

When running below function I always run into the error message as stated in the title. Am I doing something wrong?
staketaxcsv.csv(ticker="SOL", wallet_address=wallet_address, csv_format="default", path="/var/WalletAnalyzer/tmp/test2.csv", options=None, logs=True)

Example errors with txids:
WARNING:root:Unable to fetch txid=5EMcTYcT7aTggDhuPBnuT89rhNutcL4A5hgJ7wKnvZ45hncXSjgt3RWSQhatYdRbx6Kg3Reupba174m85nVKmRu. Probably old transaction where api fails.
WARNING:root:Unable to fetch txid=3MNVVD3LfmciXRae6RKSdvaLVKWWsruG987yLR41HhNGzijx5NG82bsjVVDoP3i3xBviX9JD782ubbjfkrkPPJPv. Probably old transaction where api fails.
WARNING:root:Unable to fetch txid=4zRMBBtxbrLDUQwL5UiE5RVo1SbNAZsj77UST3aXnsWUeTYECrKu7E2SYdtG7umfB5L5J7DbaYy7m8bLWRGUZzij. Probably old transaction where api fails.
WARNING:root:Unable to fetch txid=4PohPMVXY1FARnrkveNiA26vaG29UhsA4TkSDnjHdWLg915BzHt6bLrn5hAUguCWMigzvvS3Pp4DrpXPnoai4wDG. Probably old transaction where api fails.

@hodgerpodger
Copy link
Owner

hodgerpodger commented Apr 3, 2024

It works for me, but I'm guessing you're not doing anything wrong. I'm guessing right now the solana api/rpc call for getting transaction data is failing intermittently (http 200 response with empty result), and the code does not handle gracefully by detecting and retrying. This is probably newer behavior due to congestion--so it's probably a bug I need to fix.

Note: I use a quicknode private solana rpc provider, such that it doesn't run into this issue, as opposed to mainnet beta. Maybe?

This is guesswork. Does the error message occur on different txid's each run, as opposed to always identical txids?

@N11cK
Copy link
Author

N11cK commented Apr 3, 2024

It keeps happening on the same txid's and I've had the same issue for a couple days across different wallets.
Can I use a different solana endpoint that wouldn't fail these? is a quicknode private solana rpc provider paid? any free options?
thank you

@hodgerpodger
Copy link
Owner

hodgerpodger commented Apr 4, 2024

I tested it with mainnet beta and am getting same issues you are facing. Looks like I'll need to rework to handle its throttling (it used to work as is). But yeah quicknode private solana rpc is a good option I think. It's generally paid but I just checked and looks like it has very ample free amount of credits (50 million per month)--you won't reach that kind of limit unless you run thousands of csv jobs.

Just signup for a solana node endpoint on quicknode and set:

export STAKETAX_SOL_NODE=https://<somename>.solana-mainnet.quiknode.pro/<somekey>/ to your quicknode endpoint.

That should be it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants