How to disable http 2 on Azure translator API for Android Clients?

Mohit Agarwal 1 Reputation point
2020-08-29T08:42:31.41+00:00

I am following this guide to make API calls from Android clients: https://video2.skills-academy.com/en-us/azure/cognitive-services/translator/quickstart-dictionary?pivots=programming-language-java

I get the following error:
java.io.IOException: stream was reset: PROTOCOL_ERROR

From quick google search I found out that this maybe due to Http/2 support on the API but the Android clients don't support Http/2 on older versions. I followed a few articles that suggest to disable Http/2 for azure service but I could not find a way to do that : https://azure.microsoft.com/en-in/blog/announcing-http-2-support-in-azure-app-service/

Can anyone help with using translator API on Android Clients?

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
363 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,582 questions
{count} votes