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

error "Malformed URL" when requesting Catalog #74

Open
KostblLb opened this issue Jun 15, 2024 · 0 comments
Open

error "Malformed URL" when requesting Catalog #74

KostblLb opened this issue Jun 15, 2024 · 0 comments

Comments

@KostblLb
Copy link

in Unity 2022.3.29, iOS build run on device, method XsollaCatalog.GetCatalog yields a NetworkError, which internally is caused by the UnityWebRequest object.

Request URL:
https://store.xsolla.com/api/v2/project//items/virtual_items?limit=50&offset=0&additional_fields[]=long_description&engine=unity&engine_v=2022.3.29f1&sdk=store&sdk_v=2.4.0&build_platform=iphoneplayer

in the end UnityWebRequest object's "error" property is "Malformed URL", and this thread states that "additional_fields[]=long_description" part of the url causes the error: https://issuetracker-mig.prd.it.unity3d.com/issues/ios-17-malformed-url-error-is-thrown-when-using-unitywebrequest-with-a-uri-containing

i tried fixing Xsolla.Core.UrlBuilder's AddParamAsArray method with replacing "[" and "]" with "%5b" and "%5d" and it helped

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

1 participant