No pairAddress() on pancakeswapv2/BSC after block 14070600 at 2022-01-04 12:15:00 - **Also on Etherium Mainnet!**

I’ve noticed that calling this function for MOST tokens created after block 14070600 at around 2022-01-04 12:15:00 I get the following response…

message: "Cannot read property ‘length’ of undefined"

This is for all tokens using pancakeswapv2 on BSC

  • UPDATE 1: I’m also seeing this response for much older data - eg contract 0xb5d036f5fc164d971e5a8e13f655d6f264ab611f at block 13102782 @ 2021-12-01 12:02:10 … so it’s not just the above block 14070600
  • UPDATE 2 : Note that some pairs return “No pairs found” - but none return an actual pair address.
  • UPDATE 3 : I’m now seeing this error on blocks well before the above - so it seems a general error
  • *UPDATE 4 : I’m seeing the same error on the etherium mainnet using uniswapv2 *

Some examples - using https://admin.moralis.io/web3Api

These are before and OK…

Contract : 0x633c883fc9d28c4402570ff59faa708f9098433c
Timestamp : 2022-01-04 12:07:27
Request : https://deep-index.moralis.io/api/v2/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/0x633c883fc9d28c4402570ff59faa708f9098433c/pairAddress?chain=bsc&exchange=pancakeswapv2
Response : 200

Contract : 0x6143467045cb7d48300d8b9245b7d5be957a911b
Timestamp : 2022-01-04 12:09:21
Request : https://deep-index.moralis.io/api/v2/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/0x6143467045cb7d48300d8b9245b7d5be957a911b/pairAddress?chain=bsc&exchange=pancakeswapv2
Response : 200

These are the ones after…

Contract : 0x29320eb91ce962aa4c46fe9545df8c68455c0f41
Timestamp : 2022-01-04 12:21:00
Request : https://deep-index.moralis.io/api/v2/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/0x29320eb91ce962aa4c46fe9545df8c68455c0f41/pairAddress?chain=bsc&exchange=pancakeswapv2
Response : 400

Contract : 0x6e426f97e38b2113b710b169438ec51777d9bbc7
Timestamp : 2022-01-04 12:23:18
Request : https://deep-index.moralis.io/api/v2/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/0x6e426f97e38b2113b710b169438ec51777d9bbc7/pairAddress?chain=bsc&exchange=pancakeswapv2
Response : 400

… and seemingly all tokens after this - I’ve done some spot tests eg a day later…

Contract : 0xca5c8212572904eba0d8ae86efdd04acea32a1c1
Timestamp : 2022-01-05 12:00:48
Request : https://deep-index.moralis.io/api/v2/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/0xca5c8212572904eba0d8ae86efdd04acea32a1c1/pairAddress?chain=bsc&exchange=pancakeswapv2
Response : 400

Thanks, Bret

1 Like

thanks for reporting, we’ll have to investigate

The issue should be fixed now. let us know if it’s good for you. thanks

1 Like

Started working again 20 minutes ago!
Excellent - thanks :slight_smile:

1 Like