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