alchemy-sdk-js
alchemy-sdk-js copied to clipboard
Cannot read properties of undefined (reading 'safelistRequestStatus')
[REQUIRED] Environment
- Alchemy SDK version: 3.2.0
[REQUIRED] Describe the problem
I have the code snippet:
this.alchemy = new Alchemy({
url: this.NETWORK_RPC_URL,
});
return await this.alchemy.nft.getNftsForOwner(address, {
omitMetadata: false,
});
This throws the error: Cannot read properties of undefined (reading 'safelistRequestStatus') .
I figured out that it's related to OpenSea metadata parsing and most likely someone forgot smth like:
rawNftContract.openSeaMetadata**?**.safelistRequestStatus
in src/utils/util.ts.
How to reproduce:
this.alchemy = new Alchemy({
url: this.NETWORK_RPC_URL,
});
return await this.alchemy.nft.getNftsForOwner(address, {
omitMetadata: false,
});
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs
@thebrianchen Can someone please escalate this issue. There is an open PR for the same as well. Thanks in advance 🙏
cc: @bmoyroud @kidrew @SahilAujla @noam-alchemy
Sorry for the delay. This fix has been applied and published in v3.3.1.
@thebrianchen The comparison with null was also wrong. Can you please fix this as well. https://github.com/alchemyplatform/alchemy-sdk-js/pull/432
@thebrianchen The comparison with null was also wrong. Can you please fix this as well. https://github.com/alchemyplatform/alchemy-sdk-js/pull/432
@anthhub @nirmit1509 Sorry for the delay in not fixing this. This is now fixed in v3.4.1.