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

AIServiceException: Invalid request content type, expecting "multipart/form-data" or "application/json; #12

Open
Koshai opened this issue Oct 14, 2018 · 1 comment

Comments

@Koshai
Copy link

Koshai commented Oct 14, 2018

Hi,
I was testing the Service Sample scene and was testing the speech input. I clicked on Listen while playing, spoke something like "Hello" and as soon I clicked Stop Listen, I get the following error:

AIServiceException: Invalid request content type, expecting "multipart/form-data" or "application/json; charset=utf-8.
ApiAiSDK.AIDataService.CheckForErrors (ApiAiSDK.Model.AIResponse aiResponse)
ApiAiSDK.AIDataService.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
Rethrow as AIServiceException: Invalid request content type, expecting "multipart/form-data" or "application/json; charset=utf-8.
ApiAiSDK.AIDataService.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
ApiAiSDK.ApiAi.VoiceRequest (System.IO.Stream voiceStream, ApiAiSDK.RequestExtras requestExtras)
ApiAiSDK.ApiAi.VoiceRequest (System.Single[] samples)
UnityEngine.Debug:LogException(Exception)
c__AnonStorey2:<>m__0() (at Assets/Examples/ApiAiModule.cs:99)
ApiAiModule:Update() (at Assets/Examples/ApiAiModule.cs:116)

Just to let you know, it works, when i send the similar Hello through text.

Thanks

@zemmeister
Copy link

Exactly the same problem here. I haven't investigated in depth yet, but is this perhaps related to service migration to Dialogflow V2? (Shouldn't be, since V1 won't be deprecated until Oct '19.)

Would also be REALLY nice to know how / when there will be a V2 plugin available...

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

2 participants