Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Freeze after fetch #8

Open
paulevolve opened this issue Feb 20, 2022 · 12 comments
Open

Freeze after fetch #8

paulevolve opened this issue Feb 20, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@paulevolve
Copy link

There might be a bug or something in the fetch request or fetch cookie functions
It doesn't happen to all assets only to some

The bot freezes on certain assets without returning any error. And the cache_timeout and fetch_timeout doesn't seem to apply.
I've tried this on multiple devices with results.
Here's an asset that it fails to fetch: https://opensea.io/assets/0xc6ec80029cd2aa4b0021ceb11248c07b25d2de34/137
Here's an image of the process: https://i.imgur.com/Adb4ZCv.png

Any ideas?

@automainint
Copy link
Owner

Can you reproduce this with asset in testnet?

@automainint
Copy link
Owner

What is your config?

@automainint
Copy link
Owner

Is there any messages from SDK? when you set "log_opensea": true

@paulevolve
Copy link
Author

{"network": "mainnet", "log_opensea": "true", "fetch_timeout": "7000", "cache_timeout": "14000", "clear_cache_threshold": "1", "alchemy_key": "", "mnemonic": "", "wallet_address": "", "user_agent": "", "opensea_key": "", "skip_if_order_created": "true", "price_auto": "true", "price_floor": 0.01, "price_roof": 0.011, "price_epsilon": 0.00033, "cookie": "", "log_fetch": "true", "expiration": "1", "delay": "0", "log_full": "true"}

Here's my config file
No, there are no SDK messages.

Did you try to make an offer on 0xc6ec80029cd2aa4b0021ceb11248c07b25d2de34/137 asset? Does it work for you?

@paulevolve
Copy link
Author

I tried to test it on testnet but says my API key is invalid on testnet

@automainint
Copy link
Owner

automainint commented Feb 20, 2022

I reproduced this bug with this asset:
https://testnets-api.opensea.io/api/v1/asset/0xf7c68b84a8ad29a61af42fc31cef1964dd80f8ea/1

Looks like fetch works fine, but somewhere after the fetch SDK freezes...

I don't have a timeout for such case, that's why timeout options don't apply. Fetch timeout works only for fetch itself, and process timeout works for making a bid, not for getAsset call.

@automainint
Copy link
Owner

automainint commented Feb 20, 2022

I tried to test it on testnet but says my API key is invalid on testnet

You don't need an API key on testnet. Or you can use default one: 5bec8ae0372044cab1bef0d866c98618

@paulevolve
Copy link
Author

I reproduced this bug with this asset: https://testnets-api.opensea.io/api/v1/asset/0xf7c68b84a8ad29a61af42fc31cef1964dd80f8ea/1

Looks like fetch works fine, but somewhere after the fetch SDK freezes...

I don't have a timeout for such case, that's why timeout options don't apply. Fetch timeout works only for fetch itself, and process timeout works for making a bid, not for getAsset call.

Is this a bug from the new opensea update?
Is it possible to add a timeout for this specific case?

@automainint automainint changed the title Fetching Issue Freeze after fetch Feb 20, 2022
@automainint automainint added the bug Something isn't working label Feb 20, 2022
@automainint
Copy link
Owner

automainint commented Feb 20, 2022

Is this a bug from the new opensea update?

I think so. Haven't seen this before.

Is it possible to add a timeout for this specific case?

Yes.

@paulevolve
Copy link
Author

Nice. Let us know if you intend in adding this feature.
Thanks a lot for your work!

@automainint
Copy link
Owner

I will make an update shortly.

But I just discovered some new errors on some assets. So looks like SDK version 2.0 isn't quite ready yet.

@paulevolve
Copy link
Author

paulevolve commented Feb 20, 2022

Yea it's weird because on a collection for example I managed to send 10k out of 10k offers
But most of the collections have 'non-working' assets.

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

No branches or pull requests

2 participants