Search Issue Tracker
Won't Fix
Won't Fix in 1.0.X
Votes
0
Found in [Package]
1.0.0-pre.6
Issue ID
NCCBUG-164
Regression
No
"HttpException`1: HTTP/1.1 400 Bad Request" is thrown when calling JoinAllocationAsync()
Reproduction steps:
1. Open the attached project "Case_1408196" and load Scene "SampleScene"
2. Enter Play Mode
3. In the Game View click "START CLIENT"
4. Observe the Console
Expected result: No HTTP exceptions are thrown
Actual result: "HttpException`1: HTTP/1.1 400 Bad Request" is thrown in the Console
Reproducible with: 1.0.0-pre.2 (2020.3.32f1) 1.0.0-pre.6 (2020.3.32f1, 2021.2.18f1, 2022.1.0b14, 2022.2.0a9)
-
alperen10
Aug 03, 2024 17:41
The problem is caused by adding spaces to the join code. Try to solve it as follows:
JoinAllocation relayAllaction = await RelayService.Instance.JoinAllocationAsync(_inputField.text.Substring(0, 6));
instead of
JoinAllocation relayAllaction = await RelayService.Instance.JoinAllocationAsync(_inputField.text);
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- D3D12 MainLight Shadowmap clear incorrectly when using UWP
- Crash on ShaderPropertySheet::SetTexture when changing color space on a specific project
- "ENABLE_INPUT_SYSTEM" flag is true even when the "InputSystem" package isn't installed
- The "ModifiableContactPair.IgnoreContact" method does not work
- Tooltips are shown in the random place when there is not enough space for it above the element
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (1.0.X):
The issue is likely due to the field you are accessing via Text Mesh Pro.
I was able to get your project working by changing the text object referenced in the UIManager to TMP_InputField and also by hardcoding the join string. I also updated the Relay, NGO, and Transport packages to the latest released, but I don't believe this should impact your results.
Let me know if this works for you.