Moralis streams logs

Hello.

So returned to my question:

This is log in my CP. How I can view details of these logs?

For now you can try to use the swagger interface in order to see more info about them.

1 Like

That is in my CP I still can’t see detailed logs? Which one the swagger interface? Please provide more details.

Thanks.

You have all the access with the swagger interface.
You add your api key and look in history after that. You click on try for an endpoint and then provide the parameters and then click on execute.

1 Like

Once again: where?

I don’t see any option for logs with fails …

here in history

https://api.moralis-streams.com/api-docs/#/History/GetHistory

1 Like

Ok. I am asking not about it but … So how I can get details about fails which I showed at the screenshot above?

I see this one - https://api.moralis-streams.com/api-docs/#/History/ReplayHistory. Which I think equivalent this:

But it’s still not the same which I need. I need details of fails. For example my endpoint is not working, stream got error while trying to delivery info and so on … I need details of these logs.

you mean that you want to know the reason why it failed a particular stream?

that reason is found in the stream status, you can get that stream status from the swagger interface or with the SDK or with a CURL request

1 Like

YES!!! At last!!!

Where? )

here
https://api.moralis-streams.com/api-docs/#/EVM%20Streams/GetStream

you will also get the status of a stream when you get a stream config

1 Like

I don’t see any logs:

{
  "id": "9b4ae7cc-25fb-4e06-9b40-4090f81fbbb0",
  "webhookUrl": "",
  "description": "PairCreated / Mint events for for Ethereum / Bsc Mainnet.",
  "tag": "test, bsc mainnet, eth mainnet",
  "demo": false,
  "topic0": [
    "PairCreated(address,address,address,uint256)",
    "Mint(address,uint256,uint256)"
  ],
  "allAddresses": true,
  "includeNativeTxs": false,
  "includeContractLogs": true,
  "includeInternalTxs": false,
  "abi": [
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "token0",
          "type": "address"
        },
        {
          "indexed": true,
          "internalType": "address",
          "name": "token1",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "address",
          "name": "pair",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "PairCreated",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "internalType": "address",
          "name": "sender",
          "type": "address"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount0",
          "type": "uint256"
        },
        {
          "indexed": false,
          "internalType": "uint256",
          "name": "amount1",
          "type": "uint256"
        }
      ],
      "name": "Mint",
      "type": "event"
    }
  ],
  "advancedOptions": null,
  "chainIds": [
    "0x38"
  ],
  "status": "active",
  "statusMessage": "Stream is active"
}

I was referring to this info, when the stream is in error state there will be a reason

what do you see in history if you try it with limit 2?

1 Like

Where is limit param? I don’t see it.

I mean the history from here:
https://api.moralis-streams.com/api-docs/#/History/GetHistory

1 Like

this means that there are no errors currently, you see errors for failed deliveries now in the admin interface like you were posting here?

1 Like

Now I see. This is very strange and inconvenient ((( Why not do it normally - in the CP. Sadly.
Well then I will wait for fails again - to return to this issue.

Thanks.

So now I see logs from https://api.moralis-streams.com/api-docs/#/History/GetHistory and see errorMessage. It’s fine.

So next questions:

  • How long it available?
  • If I make script for cron to parse these logs how much it will cost?

Thanks.

How long is available depends on the plan. It is specified on moralis.io/pricing the time interval for each plan

It doesn’t cost anything if you read them with the api directly.

1 Like

Don’t see any info about history ((( Can u help me with this? I have a BUSINESS plan.

Am I right that u a talking about requests to the endpoint - https://api.moralis-streams.com/history?

Thanks.