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

AzureHttpFunction: content-type application/octet-stream is not supported #182

Open
pdaterao opened this issue Apr 9, 2021 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@pdaterao
Copy link

pdaterao commented Apr 9, 2021

Steps to Reproduce

  1. Setup a micronaut AzureHttpFunction to route incoming requests to controllers
  2. annotate azure function with dataType=binary and send post with header Content-Type: application/octet-stream

Expected Behaviour

Incoming azure http trigger with marked as dataType=binary and content-type: application/octet-stream should be passed on to a controller accepting byte[] as @Body

Actual Behaviour

Failed because micronaut is trying to decode binary data as JSON.

Environment Information

  • Operating System: MacOS 10.15.5
  • **Micronaut Version: 2.4.2
  • JDK Version: OpenJDK 1.8
@pdaterao pdaterao changed the title AzureHttpFunction: content-type application/octet-stream is not supoorted AzureHttpFunction: content-type application/octet-stream is not supported Apr 9, 2021
@graemerocher graemerocher added the type: bug Something isn't working label Apr 9, 2021
@sbodvanski sbodvanski self-assigned this Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants