# Strange error when trying to approve collection to sell on OpenSea

**URL:** <https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671>\
**Category:** NFTs\
**Created:** [May 22, 2023, 5:31pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671 "2023-05-22T17:31:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![MugenE](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MugenE](https://community.metamask.com/u/MugenE)\
**Post date:** [May 22, 2023, 5:31pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/1 "2023-05-22T17:31:00Z")

</div>

Hi there everyone,

when trying to approve an old collection to sell I’m getting the following error:

- Message: Invalid data; should be ‘approve’ method, but instead is ‘setApprovalForAll’
- Code: Error

Any help?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![KBeeTheCapybara](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/kbeethecapybara/32/18901_2.png) [@KBeeTheCapybara](https://community.metamask.com/u/KBeeTheCapybara)\
**Post date:** [May 22, 2023, 7:42pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/2 "2023-05-22T19:42:24Z")

</div>

Hi! Does the error look like this at all? [[Bug]: Chrome setApprovalForAll function fails in Metamask for some collections · Issue #18507 · MetaMask/metamask-extension · GitHub](https://github.com/MetaMask/metamask-extension/issues/18507)

Can you please confirm what version of MetaMask you are using? You can find this out by going to your drop down menu \> settings \> about.

Thanks!

---

<div class="post-metadata">

**Author:** ![MugenE](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MugenE](https://community.metamask.com/u/MugenE)\
**Post date:** [May 22, 2023, 10:36pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/3 "2023-05-22T22:36:02Z")

</div>

It does indeed look like that.

My version is 10.30.4

---

<div class="post-metadata">

**Author:** ![MugenE](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MugenE](https://community.metamask.com/u/MugenE)\
**Post date:** [May 23, 2023, 11:16am UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/4 "2023-05-23T11:16:35Z")

</div>

Does anyone have any idea on what the issue could be?

Thanks!

---

<div class="post-metadata">

**Author:** ![nakedwinnie](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/nakedwinnie/32/5551_2.png) [@nakedwinnie](https://community.metamask.com/u/nakedwinnie)\
**Post date:** [May 23, 2023, 2:26pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/5 "2023-05-23T14:26:04Z")

</div>

Comment described here explains it and provides solution:

> <https://github.com/MetaMask/metamask-extension/issues/18507#issuecomment-1500642484>
>
> \### Describe the bug
> 
> In the recent chrome, I'm seeing the following error whi…le calling the approval for all method. In mobile metamask, firefox and brave browser I'm not seeing this error.
> 
> \<img width="1103" alt="image" src="https://user-images.githubusercontent.com/84995585/230581537-abe4ad06-f60b-4b51-8705-5a9730af1564.png"\>
> 
> 
> \### Steps to reproduce
> 
> 1. Open this particular collection in Avalanche https://opensea.io/assets/avalanche/0xbd7bd0b4650d324e3ea6f734faa3fc37d80b7d82/15221/sell
> 2. Try to give approval for the collection to be used by OpenSea contracts
> 3. Get the error
> 
> 
> \### Error messages or log output
> 
> \`\`\`shell
> MetaMask encountered an error
> Try again by reloading the page, or contact support here.
> Error details
> Message: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
> 
> Code: Error
> 
> Stack:
> Error: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
> at n.getCustomTxParamsData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:255268)
> at j (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-9.js:1:255177)
> at ha (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:60036)
> at Cu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:104794)
> at Tl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90710)
> at gl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90635)
> at fl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:87983)
> at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46441
> at n.unstable\_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:417870)
> at $o (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46150)
> at Zo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46386)
> at Jo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46321)
> at al (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:84772)
> at Ra (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:63693)
> at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:166749
> \`\`\`
> 
> 
> \### Version
> 
> 10.27.0
> 
> \### Build type
> 
> None
> 
> \### Browser
> 
> Chrome Version 112.0.5615.49 (Official Build) (arm64)
> 
> \### Operating system
> 
> Linux
> 
> \### Hardware wallet
> 
> \_No response\_
> 
> \### Additional context
> 
> Also it's working windows Chrome 111.0.5563.147 (Official Build) (64 bit) - Metamask 10.25.0
> 
> \--EDIT--
> metamask console errors:
> 
> WARNING: Missing strong random number source
> runtime-lavamoat.js:11626 missing dep: @metamask/eth-token-tracker\>ethjs\>bn.js requested buffer
> getRelativeModuleId @ runtime-lavamoat.js:11626
> runtime-lavamoat.js:10628 failed to load decimals for token at 0xBD7bd0B4650D324e3eA6f734fAA3FC37d80b7D82
> warn @ runtime-lavamoat.js:10628
> sentry.io/api/273505/store/?sentry\_key=3567c198f8a8412082d32655da2961d0&sentry\_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
> 2runtime-lavamoat.js:7100 SES\_UNHANDLED\_REJECTION: BigNumber Error: new BigNumber() not a number: undefined
> at ee (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:72467)
> at E (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:77947)
> at new X (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:70369)
> at f (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-3.js:3:260581)
> at n.getAssetDetails (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:86320)
> at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:126149
> handleRejection @ runtime-lavamoat.js:7100
> sentry.io/api/273505/store/?sentry\_key=3567c198f8a8412082d32655da2961d0&sentry\_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
> 
> \<img width="823" alt="Screenshot 2023-04-07 at 18 18 16" src="https://user-images.githubusercontent.com/84995585/230633794-e2d58170-9c68-401a-961c-13eab2ad5908.png"\>

---

<div class="post-metadata">

**Author:** ![MugenE](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@MugenE](https://community.metamask.com/u/MugenE)\
**Post date:** [May 23, 2023, 2:54pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/7 "2023-05-23T14:54:43Z")

</div>

After reading through the solution a few times, I’ve managed to figure it out.

Thanks again both! 🙂

---

<div class="post-metadata">

**Author:** ![jimbobbins](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/jimbobbins/32/32142_2.png) [@jimbobbins](https://community.metamask.com/u/jimbobbins)\
**Post date:** [October 25, 2023, 10:50am UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/8 "2023-10-25T10:50:29Z")

</div>

I am also seeing this issue and cannot find a viable path forward, work arounds dont make sense in the latest MetaMask.

Does anyone know of any work arounds to the bug?

---

<div class="post-metadata">

**Author:** ![nakedwinnie](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/nakedwinnie/32/5551_2.png) [@nakedwinnie](https://community.metamask.com/u/nakedwinnie)\
**Post date:** [October 25, 2023, 2:15pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/9 "2023-10-25T14:15:13Z")

</div>

Someone has just responded to the issue:

> <https://github.com/MetaMask/metamask-extension/issues/18507#issuecomment-1779362472>
>
> \### Describe the bug
> 
> In the recent chrome, I'm seeing the following error whi…le calling the approval for all method. In mobile metamask, firefox and brave browser I'm not seeing this error.
> 
> \<img width="1103" alt="image" src="https://user-images.githubusercontent.com/84995585/230581537-abe4ad06-f60b-4b51-8705-5a9730af1564.png"\>
> 
> 
> \### Steps to reproduce
> 
> 1. Open this particular collection in Avalanche https://opensea.io/assets/avalanche/0xbd7bd0b4650d324e3ea6f734faa3fc37d80b7d82/15221/sell
> 2. Try to give approval for the collection to be used by OpenSea contracts
> 3. Get the error
> 
> 
> \### Error messages or log output
> 
> \`\`\`shell
> MetaMask encountered an error
> Try again by reloading the page, or contact support here.
> Error details
> Message: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
> 
> Code: Error
> 
> Stack:
> Error: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
> at n.getCustomTxParamsData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:255268)
> at j (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-9.js:1:255177)
> at ha (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:60036)
> at Cu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:104794)
> at Tl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90710)
> at gl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90635)
> at fl (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:87983)
> at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46441
> at n.unstable\_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:417870)
> at $o (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46150)
> at Zo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46386)
> at Jo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46321)
> at al (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:84772)
> at Ra (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:63693)
> at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:166749
> \`\`\`
> 
> 
> \### Version
> 
> 10.27.0
> 
> \### Build type
> 
> None
> 
> \### Browser
> 
> Chrome Version 112.0.5615.49 (Official Build) (arm64)
> 
> \### Operating system
> 
> Linux
> 
> \### Hardware wallet
> 
> \_No response\_
> 
> \### Additional context
> 
> Also it's working windows Chrome 111.0.5563.147 (Official Build) (64 bit) - Metamask 10.25.0
> 
> \--EDIT--
> metamask console errors:
> 
> WARNING: Missing strong random number source
> runtime-lavamoat.js:11626 missing dep: @metamask/eth-token-tracker\>ethjs\>bn.js requested buffer
> getRelativeModuleId @ runtime-lavamoat.js:11626
> runtime-lavamoat.js:10628 failed to load decimals for token at 0xBD7bd0B4650D324e3eA6f734fAA3FC37d80b7D82
> warn @ runtime-lavamoat.js:10628
> sentry.io/api/273505/store/?sentry\_key=3567c198f8a8412082d32655da2961d0&sentry\_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
> 2runtime-lavamoat.js:7100 SES\_UNHANDLED\_REJECTION: BigNumber Error: new BigNumber() not a number: undefined
> at ee (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:72467)
> at E (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:77947)
> at new X (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-0.js:99:70369)
> at f (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/common-3.js:3:260581)
> at n.getAssetDetails (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:86320)
> at async chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-7.js:1:126149
> handleRejection @ runtime-lavamoat.js:7100
> sentry.io/api/273505/store/?sentry\_key=3567c198f8a8412082d32655da2961d0&sentry\_version=7:1 Failed to load resource: the server responded with a status of 429 (Too Many Requests)
> 
> \<img width="823" alt="Screenshot 2023-04-07 at 18 18 16" src="https://user-images.githubusercontent.com/84995585/230633794-e2d58170-9c68-401a-961c-13eab2ad5908.png"\>

Let us know if that works!

---

<div class="post-metadata">

**Author:** ![jimbobbins](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/jimbobbins/32/32142_2.png) [@jimbobbins](https://community.metamask.com/u/jimbobbins)\
**Post date:** [October 26, 2023, 3:23pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/10 "2023-10-26T15:23:17Z")

</div>

No luck unforately.

I get this when trying to invoke `setApprovalForAll` on this contract `0xfbeef911dc5821886e1dda71586d90ed28174b7d` on etherscan or infact on any site which allows this change to happen.

When I click Write o try to trigger this, I get the following error:

```auto
MetaMask encountered an error
Try again by closing and reopening the popup, or contact support here.
Error details
Message: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'

Code: Error

Stack:
Error: Invalid data; should be 'approve' method, but instead is 'setApprovalForAll'
  at a.getCustomTxParamsData (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-8.js:1:327461)
  at H (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-11.js:1:171446)
  at va (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:60111)
  at Mu (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:105038)
  at As (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90901)
  at Rs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:90826)
  at xs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:88166)
  at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46516
  at n.unstable_runWithPriority (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:491157)
  at Qo (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46225)
  at ti (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46461)
  at ei (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:46396)
  at gs (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:84932)
  at Aa (chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-3.js:1:63768)
  at chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/ui-8.js:1:223704

```

I have tried the work arounds with no luck.

Any ideas on how to proceed?

---

<div class="post-metadata">

**Author:** ![Norwegian](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/norwegian/32/32261_2.png) [@Norwegian](https://community.metamask.com/u/Norwegian)\
**Post date:** [November 1, 2023, 6:23pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/11 "2023-11-01T18:23:04Z")

</div>

Hey, I’m getting the exact same error.

I tried to approve KnownOrigin’s contract to be able to sell a KO token on their marketplace, but I think there’s some issues since they’re being treated as ERC20 tokens (the native KODA token), and not as NFTs - so MetaMask doesnt recognize the “set approval for all” thing.

This really sucks. I have tried removing the KODA in the “Token” tab (I have no “Assets” tab), and tried removing all the NFTs (I have 7 KO pieces), adding the 1 piece I want to list etc. But no luck.

I just updated my MetaMask, but I also had the error on the last version, but I haven’t updated my Chrome

Thanks for assisting me in this!

---

<div class="post-metadata">

**Author:** ![nakedwinnie](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/nakedwinnie/32/5551_2.png) [@nakedwinnie](https://community.metamask.com/u/nakedwinnie)\
**Post date:** [November 1, 2023, 6:25pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/12 "2023-11-01T18:25:03Z")

</div>

@jimbobbins @Norwegian

Please reach out to MetaMask Support.

- Visit : [https://support.metamask.io/](https://support.metamask.io/)

- Click the large blue “start a conversation” bubble in the upper middle of page, looks like this:

[![](https://europe1.discourse-cdn.com/metamask/original/3X/b/7/b74bc3bd3f7935c5ca91d9aaa22329d15d6fd4d1.png) ](https://europe1.discourse-cdn.com/metamask/original/3X/b/7/b74bc3bd3f7935c5ca91d9aaa22329d15d6fd4d1.png)

- This will connect you to a bot at first, answer some questions and it will open a ticket for you with an agent.

Remember - NOBODY, including from support, will ask for your secret recovery phrase or for you to input it onto any website for confirmation.

---

<div class="post-metadata">

**Author:** ![elekode](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/elekode/32/32525_2.png) [@elekode](https://community.metamask.com/u/elekode)\
**Post date:** [November 15, 2023, 3:49am UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/13 "2023-11-15T03:49:50Z")

</div>

I am also getting this error. I have done the same as Norwegian.  
Known Origin website says something about a KODA v1 and a KODA v2 contract. And under the contract I can see some people actually approving the SetApprovalForAll  
I have tried all browsers and all combinations of adding the NFT  
Following for updates

---

<div class="post-metadata">

**Author:** ![nakedwinnie](https://dub1.discourse-cdn.com/metamask/user_avatar/community.metamask.com/nakedwinnie/32/5551_2.png) [@nakedwinnie](https://community.metamask.com/u/nakedwinnie)\
**Post date:** [November 15, 2023, 3:30pm UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/14 "2023-11-15T15:30:45Z")

</div>

Hey @elekode, I would suggest contacting the support team with the link I shared above about this issue

---

<div class="post-metadata">

**Author:** ![sol](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sol](https://community.metamask.com/u/sol)\
**Post date:** [November 17, 2023, 6:40am UTC](https://community.metamask.com/t/strange-error-when-trying-to-approve-collection-to-sell-on-opensea/25671/15 "2023-11-17T06:40:38Z")

</div>

Crazy there is no solution posted after all this time. Seems like no one at MetaMask cares either, probably time to switch to Rabby wallet.

Here’s the way to fix it:  
Go to your MetaMask wallet in your browser not the extension, go to swap tab, change networks to optimism then back to eth. Boom fixed, you are welcome.
