Skip to content

SSL 认证失败 #2606

@wmx-github

Description

@wmx-github

Notice: In order to resolve issues more efficiently, please raise issue following the template.
(注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

SSL 认证失败

我用 wss:// 开头还是 认证失败 ,调试到 if uri.find("wss://"): 结果转到elif uri.find("ws://"): is_ssl = False

To Reproduce

FunASR/runtime/funasr_api/funasr_core.py

Code sample

                 is_ssl = True
             elif uri.find("ws://"):
                 is_ssl = False
            else:
                print("not support uri", uri)
                 exit(0)

改为下面,就行了

                is_ssl = True
            elif uri.startswith("ws://"):
                is_ssl = False
            else:
                print("not support uri", uri)
                exit(0)

Expected behavior

Environment

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions