OpenFn / kit

The bits & pieces that make OpenFn work. (diagrammer, cli, compiler, runtime, runtime manager, logger, etc.)
11 stars 9 forks source link

CLI: Bad error output for http #582

Closed josephjclark closed 2 months ago

josephjclark commented 8 months ago

Experimenting with the CLI and this job:

get({ url: 'https://api.chucknorris.io/jokes/random' });

Gives terrible error output.

Here's the result in 5.04: image

It is better in 6.0.0:

image

The error is expected btw - I'd just like to be able to see what it actually is.

josephjclark commented 8 months ago

I'm also seeing this on the next release branch:

[R/T] ✘ AdaptorError: [object Object]

What's going on here is:

Some concrete fixes then: