System.UriFormatException: Invalid URI: The hostname could not be parsed.
at UnityEngineInternal.WebRequestUtils.MakeInitialUrl (System.String targetUrl, System.String localUrl) [0x000c8] in <31664f8150174b9e97cdc14284aa32bb>:0 at UnityEngine.Networking.UnityWebRequest.set_url (System.String value) [0x00007] in <31664f8150174b9e97cdc14284aa32bb>:0
at UnityEngine.Networking.UnityWebRequest..ctor (System.String url, System.String method, UnityEngine.Networking.DownloadHandler downloadHandler, UnityEngine.Networking.UploadHandler uploadHandler) [0x0001a] in <31664f8150174b9e97cdc14284aa32bb>:0
http 주소에 슬래시 대신 백슬래시 들어가있나 확인할것
' \ ' -> ' / ' 로 바꾸기
var url = "http://127.0.0.1/myFolder/aa.json"
로컬파일경로를 쓸경우에 윈도우에서는 백슬래시가 들어가도 문제가 없는데 윈도우 외의 다른 운영체제나 시스템에서는 호환이 안되기 때문에 그냥 슬래시 쓰는걸 권장
var url = "file://C:/inetpub/wwwroot/myFolder/aa.json
'programming | development > troubleShooting' 카테고리의 다른 글
홀로렌즈 인증서를 열 수 없습니다 WSATestCertificate.pfx (0) | 2024.06.06 |
---|
댓글