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?