[SOLVED] searchNFTs - {"code":141,"error":"organizationId xxxxx does not have permissons for the null or is blocked"}

What am I missing here, whenever I try to call this function fetchSearchNFTs function, I get the network response: “code”:141,“error”:“organizationId xxxxx does not have permissons for the null or is blocked”

I’ve provided a trimmed down version of my code, highlighting the relevant bits:

searchModal.ts

import React from 'react';
import { useMoralisWeb3Api } from 'react-moralis';

const Web3Api = useMoralisWeb3Api();

  const fetchSearchNFTs = async () => {
    const NFTs = await Web3Api.token.searchNFTs({
      chain: 'eth',
      q: 'bored',
      filter: 'name',
    });
    console.log(NFTs);
  };

App.tsx

import { MoralisProvider } from 'react-moralis';

function App({ Component, pageProps }: AppProps) {
  return (
    <MoralisProvider
      serverUrl="xxxxxxxx"
      appId="xxxxxx"
    >
      <>
        <SearchModal isOpen={true} />
        <Component {...pageProps} />
      </>
    </MoralisProvider>
  );
}

Any help would be much appreciated, thanks!

can you look in network tab to see what request it is made and paste it?

Sure:



image

Btw, also attempted to make the request using:
https://admin.moralis.io/web3apis

But unsure what I’m meant to put for the X-API-KEY field. When trying to execute the searchNFTs function there, it seems to hit an auth error within the docs too.

it seems to be an issue with that particular account and the API key, support team will try to help

Yeah, it was, recreated the account and everything is working now, thanks!

1 Like