Skip to content

SwaggerUI throws an error when changing Servers #7525

Closed
@ponelat

Description

SwaggerUI throws error: Uncaught TypeError: Failed to construct 'URL': Invalid base URL
When changing server (from the dropdown)

Steps:

Expected:

The server field is changed

Actual:
An Uncaught TypeError is thrown

SwaggerUI demo with definition: https://petstore.swagger.io/?url=https://gist.githubusercontent.com/ponelat/71dba4b85b403455e0718383f7cf3bd3/raw/50737b50e2ee42ebfc5afa7fb5137b588c6ba0cc/server-url-issue.yml#/default/get_something

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions