Skip to content

406 Client Error: Not Acceptable #5

@manojsitapara

Description

@manojsitapara

I am getting error while executing following code

from yourls import YOURLSClient
yourls = YOURLSClient('https://mydomain.in/yourls-api.php', username='test', password='O2Wy&Pi4%$')
result = yourls.shorten('http://google.com')
print(result)

raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 406 Client Error: Not Acceptable for url: https://mydomain.in/yourls-api.php?action=shorturl&url=http%3A%2F%2Fgoogle.com&username=test&password=O2Wy%26Pi4%25%24&format=json

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