Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
363 stars 301 forks source link

Error: Unexpected 'StartArray' Node in JSON Reader During Service Provider Action #1018

Closed piyushgoell closed 4 months ago

piyushgoell commented 6 months ago

Describe the Bug with repro steps

I encountered an issue while performing a service provider action, resulting in an error with the following details:

Error Code: ServiceOperationFailed

Error Message: The request is invalid. Details: An unexpected 'StartArray' node was found when reading from the JSON reader. A 'PrimitiveValue' node was expected.

This error occurred with a status code of 400 (Bad Request). Upon investigation, it seems that the JSON payload being sent is valid. It has two collections elemets, one is storing the array of strings and other one is storing the embedding array generated via Azure Open AI Embedding model.

I believe this issue may be related to how the JSON data is being processed or formatted before being sent to the service provider. Additional debugging and validation of the JSON structure may be necessary to resolve this issue.

Any insights or suggestions on how to address this problem would be greatly appreciated.

Given that the same JSON payload works when triggered from Postman but encounters issues when sent via LogicApps, it's likely that there's a discrepancy in how the JSON data is being handled or formatted between the two approaches.

What type of Logic App Is this happening in?

Consumption (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

workflow.json

Screenshots or Videos

image

Browser

Chrome

Additional context

No response

AB#27278494

hartra344 commented 6 months ago

passing this over to the backend repo to triage.

piyushgoell commented 6 months ago

Anyone looking into this issue??

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 45 days with no activity.

github-actions[bot] commented 4 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.