Hi @Macwin ,
Do you put the image1 and image2 as Query parameter within the action path in your custom connector?
Based on the issue that you mentioned, I think this issue is related to the image1 and image2 as Query parameter in your action path ("ConvertMe") of your custom connnector.
Actually, there are some known limits on Query string of HTTP Request, please check the following article for more details:
https://stackoverflow.com/questions/812925/what-is-the-maximum-possible-length-of-a-query-string
https://stackoverflow.com/questions/3091485/what-is-the-limit-on-querystring-get-url-parameters?lq=1
If you provided a value which is more than the HTTP Request Query String limit for the image1 and image2 parameter, you would get the error that you mentioned.
As an fixed solution, please consider put the image1 and image2 parameter as Request Body parameter rather than Query string parameter within the action path of your custom connector, then re-publish your custom connector, check if the issue is solved.
Note: You also need to change the HTTP Method (operation) from "GET" to "POST".
On your side, please consider modify your OpenAPI definition file as below:
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "MyAzureFunction"
},
"basePath": "/",
consumes: [],
produces: [],
"schemes": [
"https"
],
"host": "Website",
"paths": {
"/api/ConvertMe": {
"post": {
"description": "Calls my azure function over https",
"operationId": "ConvertMe",
"parameters": [
{
"name": "imageBody",
"in": "body",
"description": "image body data for converting",
"schema": {
"type": "object",
"required": [
"image1",
"image2"
],
"properties": {
"code": {
"type": "string",
"default": "API CODE",
"description": "code"
},
"image1": {
"type": "string"
},
"image2": {
"type": "string"
}
}
}
}
],
"responses": {
"200": {
"description": "Successful response",
"schema": {
"title": "The response of the api.",
"type": "string"
}
},
"204": {
"description": "Successful response",
"schema": {
"title": "No Content",
"type": "string"
}
},
"default": {
"description": "default",
"schema": {
"type": "string"
},
"headers": {
"default": {
"description": "default",
"type": "string"
}
}
}
},
"summary": "APPCALL"
}
}
},
"securityDefinitions": {}
}
More details about defining Request Body parameter in Open API definition file, please check the following article:
https://swagger.io/docs/specification/describing-request-body/
You need to modify your Azure function to receive HTTP POST request from this custom connector rather than GET request. Please remove previous custom connector, then re-add a new one based on above modified OpenAPI definition file, then check if the issue is solved.
More details about creating custom connector in PowerApps, please refer to the following article:
https://docs.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition
Best regards,