You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Requests get call fails on getting an IPFS url.
The collection you were trying to download
evmavericks
Expected behavior
Should download images.
Terminal output (please show the error that the console showed)
Traceback (most recent call last):
File "/Users/xyz/Documents/Draw/OpenSea-NFT-Stealer/opensea.py", line 163, in <module>
image = requests.get(image_url)
File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/sessions.py", line 695, in send
adapter = self.get_adapter(url=request.url)
File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'ipfs://QmecvpNSiaSSKqvLRVCG3g3r9ifaRh1LgVjzDvDfztVmue'
The fix is simple, the problem is at line 163 of opensea.py, there is a requests get command that precedes the url check for ipfs links. It needs to be moved after the ipfs or fail gracefully.
if not len(image_url) == 0:
image = requests.get(image_url)
The text was updated successfully, but these errors were encountered:
Describe the bug
Requests get call fails on getting an IPFS url.
The collection you were trying to download
evmavericks
Expected behavior
Should download images.
Terminal output (please show the error that the console showed)
The fix is simple, the problem is at line 163 of
opensea.py
, there is a requests get command that precedes the url check for ipfs links. It needs to be moved after the ipfs or fail gracefully.The text was updated successfully, but these errors were encountered: