Skip to content

D1 Provider: Query error: 404 Client Error #159

@jegork

Description

@jegork

It seems like the URL here is incorrect:

api_url = f"{self._api_base_url()}/client/v4/accounts/{conn.account_id}/d1/database/{conn.database_id}/execute"

I am getting [12:28:34] Query error: 404 Client Error: Not Found for url: https://api.cloudflare.com/client/v4/accounts/<account-id>/d1/database/<database-id>/execute

From cloudflare docs it seems like the correct path is /query instead of /execute
https://developers.cloudflare.com/api/resources/d1/subresources/database/methods/query/

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