Skip to content

HTTP 403 Forbidden Error when trying to access remote URL #5

Description

@NuanceLab

Accessing a server hosted on a remote URL results in an HTTP 403 Forbidden error, which causes issues when the server is hosted remotely or on a different machine. This can be resolved by modifying line 10 of utils/api.py:

from:
headers = {"Content-Type": "application/json"}

to:
headers = {"Content-Type": "application/json", "User-Agent": "Mozilla/5.0"}

I hope you will include this fix in the future release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions