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)
Comments (1)
-
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.