Skip to content

ServerAPI.get_addon_settings_schema : Requested URL is wrong #184

@firegreen

Description

@firegreen

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

my_connection.get_addon_settings_schema(addon_name, addon_version)

>>> ayon_api.exceptions.HTTPRequestError: 404 Client Error: Not Found for url: http://****5000/api/http://****:5000/addons/dependencies_tool/1.0.0/schema

Expected Behavior:

The ServerAPI.get concatenate the URL, it should have an an option to take the URL as it is generated by ServerAPI.get_addon_url

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

Call ServerAPI.get_addon_settings_schema()

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

Traceback (most recent call last):
  File "C:\Users\****\AppData\Local\JetBrains\PyCharm Community Edition 2024.1.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_exec2.py", line 3, in Exec
    exec(exp, global_vars, local_vars)
  File "<input>", line 1, in <module>
  File "C:\Users\****\AppData\Local\pypoetry\Cache\virtualenvs\hitc-core-addon-RZBrIwTE-py3.9\lib\site-packages\ayon_api\server_api.py", line 2793, in get_addon_settings_schema
    result.raise_for_status()
  File "C:\Users\****\AppData\Local\pypoetry\Cache\virtualenvs\hitc-core-addon-RZBrIwTE-py3.9\lib\site-packages\ayon_api\server_api.py", line 203, in raise_for_status
    raise HTTPRequestError(message, exc.response)
ayon_api.exceptions.HTTPRequestError: 404 Client Error: Not Found for url:

Additional context:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions