Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot send request with form-data body #41

Open
karnadixyz opened this issue Jan 14, 2020 · 0 comments
Open

cannot send request with form-data body #41

karnadixyz opened this issue Jan 14, 2020 · 0 comments

Comments

@karnadixyz
Copy link

Hi, i try to send request data with:

  • raw body (json) => OK
  • header => OK
  • form-data body => failed

my error is:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value at [Source: java.io.ByteArrayInputStream@1a85e949; line: 1, column: 3]

my camel route:
.post("/formdata") .consumes("application/json") .param() .name("name") .type(RestParamType.formData) .endParam() .to("bean:myFunction?method=dataNIBFormData")

do u have solution?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant