** (FunctionClauseError) no function clause matching in Kernel.inspect/2

** (FunctionClauseError) no function clause matching in Kernel.inspect/2
            (elixir 1.11.2) lib/kernel.ex:2123: Kernel.inspect("{\"__type\":\"list\",\"data\":[{\"__type\":\"pair\",\"data\":{\"firstPrice\":12.236,\"lastPrice\":13.8568,\"low\":12.1732,\"high\":13.9836,\"weightedAveragePrice\":13.1544930056815,\"volume\":84936.83135158,\"quoteVolume\":1117300.95393911,\"volumeWaves\":84936.83135158,\"txsCount\":3784},\"amountAsset\":\"WAVES\",\"priceAsset\":\"DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":0.00021663,\"lastPrice\":0.00023749,\"low\":0.00021631,\"high\":0.00023998,\"weightedAveragePrice\":0.000229420908988666,\"volume\":78782.9916230099,\"quoteVolume\":18.0744655509974,\"volumeWaves\":78782.9916230099,\"txsCount\":1206},\"amountAsset\":\"WAVES\",\"priceAsset\":\"8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":161.01000002,\"lastPrice\":151.01,\"low\":149,\"high\":161.32460824,\"weightedAveragePrice\":154.360162629868,\"volume\":242.31870767,\"quoteVolume\":37404.3551242007,\"volumeWaves\":37404.3551242007,\"txsCount\":495},\"amountAsset\":\"474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu\",\"priceAsset\":\"WAVES\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":1.003654,\"lastPrice\":1.003784,\"low\":1.002101,\"high\":1.006,\"weightedAveragePrice\":1.00387625964943,\"volume\":349237.847283001,\"quoteVolume\":350591.583858478,\"volumeWaves\":26651.8507180061,\"txsCount\":2687},\"amountAsset\":\"34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ\",\"priceAsset\":\"DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":56314.8,\"lastPrice\":58412.16,\"low\":56206.09,\"high\":58613.1,\"weightedAveragePrice\":57606.6137764995,\"volume\":5.83533526000006,\"quoteVolume\":336153.904579213,\"volumeWaves\":25554.3033421377,\"txsCount\":2187},\"amountAsset\":\"8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS\",\"priceAsset\":\"DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":12.168764,\"lastPrice\":13.599665,\"low\":12.168764,\"high\":13.9,\"weightedAveragePrice\":12.9742540220348,\"volume\":14602.96117903,\"quoteVolume\":189462.527810648,\"volumeWaves\":14602.96117903,\"txsCount\":557},\"amountAsset\":\"WAVES\",\"priceAsset\":\"34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":0.02898689,\"lastPrice\":0.03107523,\"low\":0.02699016,\"high\":0.03125983,\"weightedAveragePrice\":0.0282160355836558,\"volume\":471691.643325909,\"quoteVolume\":13309.2681925969,\"volumeWaves\":13309.2681925969,\"txsCount\":2611},\"amountAsset\":\"4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8\",\"priceAsset\":\"WAVES\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":0.363281,\"lastPrice\":0.425059,\"low\":0.345198,\"high\":0.43,\"weightedAveragePrice\":0.380246787698461,\"volume\":446608.88405967,\"quoteVolume\":169821.593521284,\"volumeWaves\":12909.7786929483,\"txsCount\":2379},\"amountAsset\":\"4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8\",\"priceAsset\":\"DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":19.369632,\"lastPrice\":19.97361099,\"low\":19.132687,\"high\":20.4,\"weightedAveragePrice\":19.6124017014484,\"volume\":6655.49773,\"quoteVolume\":130530.295003838,\"volumeWaves\":9922.86779486383,\"txsCount\":649},\"amountAsset\":\"6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g\",\"priceAsset\":\"DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":56192.22631,\"lastPrice\":57963.3952,\"low\":56192.226299,\"high\":58358.5301,\"weightedAveragePrice\":57301.0550210798,\"volume\":1.28696327,\"quoteVolume\":73744.3531443788,\"volumeWaves\":5683.89928385365,\"txsCount\":175},\"amountAsset\":\"8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS\",\"priceAsset\":\"34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":18.10381216,\"lastPrice\":16.47427049,\"low\":16.0000001,\"high\":18.27955499,\"weightedAveragePrice\":16.8106374961841,\"volume\":333.76291683,\"quoteVolume\":5610.76740449817,\"volumeWaves\":5610.76740449817,\"txsCount\":130},\"amountAsset\":\"HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk\",\"priceAsset\":\"WAVES\"},{\"__type\":\"pair\",\"data\":{\"firstPrice\":0.291,\"lastPrice\":0.350003,\"low\":0.280103,\"high\":0.5495,\"weightedAveragePrice\":0.392737489777343,\"volume\":128012.15101652,\"quoteVolume\":50275.1708512262,\"volumeWaves\":3821.90106676952,\"txsCount\":235},\"amountAsset\":\"5v9TiJbbBKSXzJ2moxn1sZeokKMk" <> ..., "line: 10")

Why, exactly, is this failing and how do I get it to work properly?

what exactly are you passing to inspect. It looks like you are . passing the wrong options. maybe a string “line: 10” ?

2 Likes

Your question led me to the answer, thanks! :slight_smile:

I was attempting to inspect two items (Ex: inspect(foo, bar) but inspect treats everything after the comma as optional arguments, hence the error. Wrapping the two items in brackets and then piping it to inspect did the trick:

[foo, bar]
|> inspect()

Thanks again! :slight_smile:

2 Likes