Open hiroyuki-sato opened 8 years ago
I have run into a very similar problem, although with a different root cause (which I am struggling to understand), and a slightly different error message.
As far as I can tell, my error is very similar one pasted above in terms of the same exception being raised, except that above it says "START_OBJECT token", my version says "VALUE_STRING token". I have been unable to debug this and would love to get friendlier errors.
My Exception does occur on the same line at the top level, and in the "Caused by" exception:
org.embulk.exec.PartialExecutionException: org.embulk.config.ConfigException:
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of
java.util.ArrayList out of VALUE_STRING token
at [Source: N/A; line: -1, column: -1]
at
org.embulk.exec.BulkLoader$LoaderState.buildPartialExecuteException(org/embulk/exec/BulkLoader.java:363)
<snip>
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of
java.util.ArrayList out of VALUE_STRING token
at [Source: N/A; line: -1, column: -1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at
Hello, @aaronpowers
The message
Can not deserialize instance of java.util.ArrayList out of VALUE_STRING
mean
Can not deserialize instance of <Expected Type> out of <Wrong Type>
The config requires Array
but, You specify String
.
For example
in:
type: file
path_prefix: /private/tmp/error/csv/sample_
# decoders must be Array
# decoders:
# - {type: gzip}
decoders: gzip # Wrong type
Proper config
decoders:
- {type: gzip}
But Now,
decoders: gzip
Please check a String part in your configuration.
If you show me your configuration, I might find the problem.
Anyway, error message needs user-friendly.
Thank you, Hiroyuki! I will look at my config for that pattern.
I use liquid template
When I execute
embulk run config.yml
without .liquid suffix The following exception raised.the more user-friendly message need.
config.yml
embulk run config.yml