Using the Moralis
object is proving to be a headache in the context of Streams. Iโve decided that I prefer axios for stream management.
That said, axios
seems to work well for listing and deleting existing streams, but I consistently receive Error 524
Per CF docs: Error 524 indicates that Cloudflare successfully connected to the origin web server, but the origin did not provide an HTTP response before the default 100 second connection timed out
.
My axios
headers (for PUT/GET/DELETE) are as follows:
headers: {
"content-type": "application/json",
"accept": "application/json",
"X-API-Key": process.env.MORALIS_API_KEY,
},
Again, GET and DELETE work just fine. But creating new streams fails via this method passing the following fields in the correct formats:
chainIds
abi
topic0
description
tag
webhookUrl
includeNativeTxs
includeContractLogs
What completely obvious thing am I missing?
NOTE: Yes my webhook endpoint is active.