kontent-ai / boilerplate-net

Kontent.ai Boilerplate for development of ASP.NET Core MVC applications.
https://kontent.ai/
MIT License
32 stars 35 forks source link

SignatureActionFilter throwing "System.NotSupportedException" #84

Closed ewomack2000 closed 4 years ago

ewomack2000 commented 4 years ago

Brief bug description

With an ngrok url setup and the webhook url set to "webhooks/webhooks/index," I put a breakpoint on the Webhooks controller to follow the code - when it arrives at the "request.Body.Position=0" at line 26, it throws a "System.NotSupportedException" - the alternate Seek() method threw the same exception. When I commented out line 26, the system told me to change ReadToEnd() to async methods, but I ran into the same issues there. Kentico support suggested I open an issue for this.

What went wrong? Webhook crashes on receiving a new message

Repro steps

Step through code in SignatureActionFilter, starting with line 26

Add links to screenshots, if possible. Error

petrsvihlik commented 4 years ago

@sutrkiller could you please take a look?

petrsvihlik commented 4 years ago

fixed in https://github.com/Kentico/kontent-boilerplate-net/releases/tag/4.0.1