Skip to content

Refactor correctly handle empty response with ignore error flag is true - #1248

Merged
SebastianStehle merged 2 commits into
Squidex:masterfrom
NoahHahm:script-nocontent
Aug 28, 2025
Merged

Refactor correctly handle empty response with ignore error flag is true#1248
SebastianStehle merged 2 commits into
Squidex:masterfrom
NoahHahm:script-nocontent

Conversation

@NoahHahm

@NoahHahm NoahHahm commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

This PR handles cases where the body is empty, but the response is correct when ignore errors are enabled in the script.
The existing code causes a script parsing error when the body is passed to the JSON parser in ignore error mode.

reference
#1242 (comment)
unitycloud-rest-api

{
};

string script = $@"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use "var"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type has been modified.

@SebastianStehle
SebastianStehle merged commit 55f971d into Squidex:master Aug 28, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants