"plan should not be empty"

When fetching recent events from our contract, a few times within an hour we receive an error from the Moralis API saying plan should not be empty. We’re using this endpoint: https://deep-index.moralis.io/api-docs-2.1/#/Events/getContractEvents

Log extract:

2023-05-04 19:18:01 - [DEBUG] Fetching all events since 2023-05-04T17:18:01
2023-05-04 19:18:02 - [DEBUG] Processed 0/0 events
2023-05-04 19:18:02 - [DEBUG] Processed NftMinted events
2023-05-04 19:18:02 - [DEBUG] Processed 0/0 events
2023-05-04 19:18:02 - [DEBUG] Processed NftUpdated events
2023-05-04 19:19:01 - [DEBUG] Fetching all events since 2023-05-04T17:19:01
2023-05-04 19:19:01 - [FETCH EVENTS] Invalid response: {"message":"plan should not be empty"}
2023-05-04 19:19:01 - [DEBUG] Processed 0/0 events
2023-05-04 19:19:01 - [DEBUG] Processed NftMinted events
2023-05-04 19:19:01 - [FETCH EVENTS] Invalid response: {"message":"plan should not be empty"}
2023-05-04 19:19:01 - [DEBUG] Processed 0/0 events
2023-05-04 19:19:01 - [DEBUG] Processed NftUpdated events

The JSON message is 1:1 taken from the API response.
What could be the issue here?

Hey @crypt0jan

Can you copy the code here on how are you calling the API along with the inputs?

I’ll have a test on that :raised_hands:

this should be fixed now, you are still getting this error?

I will let it run a few hours and then update this message if I still have the occasional error message. Thanks for responding so fast!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.