收藏
回答

U3d小游戏 使用U3d插件Best HTTP 连接 .Net5 SignalR Web服务器 报错

框架类型 问题类型 操作系统 工具版本
小游戏 Bug macOS minigame-unity-webgl-transform

报错: exception thrown: ReferenceError: URL is not defined,ReferenceError: URL is not defined

    at _XHR_Create (http://127.0.0.1:42570/game/webgl.wasm.framework.unityweb.js:4572:13)

    at _WebGLConnection_XHR_Create_m0241A2B3717BECF771BF66FF301CB292D0686BD7 (<anonymous>:wasm-function[58822]:0x13ad843)

    at _WebGLConnection_ThreadFunc_m23E3625E4EBDCAFA79BD6BBC27A7A5D54662EF5A (<anonymous>:wasm-function[58821]:0x13ad1f8)

    at __ZN18VirtActionInvoker06InvokeEjP12Il2CppObject (<anonymous>:wasm-function[36611]:0xfb3916)

    at _ConnectionBase_Process_m9241DA7CAFE6400DC0433A53D3765E60818860F6 (<anonymous>:wasm-function[58752]:0x13a6d53)

    at __ZN18VirtActionInvoker1IbE6InvokeEjP12Il2CppObjectb (<anonymous>:wasm-function[36680]:0xfb5057)

    at _HostConnection_Send_m9BD9CE688A0AD1363C1FB9C92B0951EDC912000D (<anonymous>:wasm-function[58881]:0x13b3d96)

    at _HostDefinition_Send_m46DBE65D71FF72C639871B865D969FD80741DD1C (<anonymous>:wasm-function[58911]:0x13b5945)

    at _RequestEventHelper_ProcessQueue_m2A71CF722D47725CB18327F0B7114D63948436CA (<anonymous>:wasm-function[75686]:0x16cf290)

    at _HTTPManager_OnUpdate_mB50FFCC3F217DDC3C8CA8DD659F0D699E4F14C57 (<anonymous>:wasm-function[56766]:0x1339f18)

    at _HTTPUpdateDelegator_Update_m0F9DBCFE1431B9E4D48AFFEF6FA9A0C8606FC296 (<anonymous>:wasm-function[56924]:0x13454a1)

    at __Z65RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017PFvvEPK10MethodInfoPvPS4_ (<anonymous>:wasm-function[89357]:0x198afac)

    at dynCall_iiiii (<anonymous>:wasm-function[94476]:0x1a7ab86)

    at Object.dynCall_iiiii (http://127.0.0.1:42570/game/webgl.wasm.framework.unityweb.js:28089:40)

    at invoke_iiiii (http://127.0.0.1:42570/game/webgl.wasm.framework.unityweb.js:18311:33)

    at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (<anonymous>:wasm-function[85553]:0x19132c6)

    at _il2cpp_runtime_invoke (<anonymous>:wasm-function[84508]:0x18f061f)

    at __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (<anonymous>:wasm-

回答关注问题邀请回答
收藏

3 个回答

  • Ocean
    Ocean
    2021-10-09

    请问用的什么通信方式, HTTP 、WSS还是TCP?

    2021-10-09
    有用
    回复 3
    • 夭夭
      夭夭
      2023-05-26
      您好,使用的是HTTPs
      2023-05-26
      回复
    • 夭夭
      夭夭
      2023-05-26
      您好,我也报一样的错误,使用的是https
      2023-05-26
      回复
    • 夭夭
      夭夭
      2023-05-26
      请问解决了吗
      2023-05-26
      回复
  • 夭夭
    夭夭
    2023-05-26

    博主,请问解决了吗

    2023-05-26
    有用
    回复
  • Taobe
    Taobe
    2023-01-03

    你好博主,请问U3D开发转小游戏的联网问题后续解决了吗?方便分析怎么解决的吗?我已经尝试了Mirror和Photon两款插件都不行。(尽管客服说Photon可以)

    2023-01-03
    有用
    回复
登录 后发表内容