Skip to content

create_status responds with unauthorized #100

@hhofner

Description

@hhofner

Apologies if this is expected but I've tried to post a status with create_status only to get the error

(Hunter.Error) "{\"error\":\"This action is outside the authorized scopes\"}"
    (hunter 0.5.1) lib/hunter/api/http_client.ex:348: Hunter.Api.HTTPClient.request!/5

but I created the app per the readme instructions, which includes all write access:

app = Hunter.create_app("hunter", "urn:ietf:wg:oauth:2.0:oob", ["read", "write", "follow"], nil, [save?: true, api_base_url: "https://example.com"])

conn = Hunter.log_in(app, "[email protected]", "your_password", "https://example.com")

and I was then able to read basic things like favorites. However when running Hunter.create_status(conn, "test"toot") I get the following error

(Hunter.Error) "{\"error\":\"This action is outside the authorized scopes\"}"
    (hunter 0.5.1) lib/hunter/api/http_client.ex:348: Hunter.Api.HTTPClient.request!/5

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