You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
Reason is the File adapter emits a map. The map is detected by the Transformer's transformOne function. This then calls mejson.Marshal(msg.Data). Mejson has no code to match with a map[string]interface() so it falls through to default...
which emits the error but still marshals the value allowing the code to work.
Don't know whether to fix in mejson or in the transformer.
The text was updated successfully, but these errors were encountered:
codepope
changed the title
File adapter + Transformer works but emits 'error'
File adapter + Transformer works but emits unlabeled warning
Jan 12, 2015
Hi,
I think this was fixed with an update to mejson, ( compose/mejson@68a977b )
Can you please try go get -u github.com/compose/mejson and rebuild your transporter?
Run any Transformer with the File adapter and the process will work but the console will be full of
unknown type: map[string]interface {}
unknown type: map[string]interface {}
unknown type: map[string]interface {}
unknown type: map[string]interface {}
...
Reason is the File adapter emits a map. The map is detected by the Transformer's transformOne function. This then calls mejson.Marshal(msg.Data). Mejson has no code to match with a map[string]interface() so it falls through to default...
which emits the error but still marshals the value allowing the code to work.
Don't know whether to fix in mejson or in the transformer.
The text was updated successfully, but these errors were encountered: