yes quering the d1 directly from the Ui console works. I have noticed some other api compatibility
yes quering the d1 directly from the Ui console works.
I have noticed some other api compatibility issues that i have fixed.
My code was originally like this:
res, err := c.api.QueryD1Database(c.ctx, cloudflare.AccountIdentifier(c.cfg.Cloudflare.AccountID), cloudflare.QueryD1DatabaseParams{
DatabaseID: c.cfg.Cloudflare.DBID,
SQL: sqlQuery.String(),
// error was originally here
})
The first error that i started getting was this:
Invalid property: params => Expected array, received null (7400)"}
When i changed the code to include a string array with params i started getting:
failed to upsert customers to D1 {"error": "error from makeRequest: received internal server error response (HTTP 500), please try again later"}
This started happening one week ago.
I have noticed some other api compatibility issues that i have fixed.
My code was originally like this:
res, err := c.api.QueryD1Database(c.ctx, cloudflare.AccountIdentifier(c.cfg.Cloudflare.AccountID), cloudflare.QueryD1DatabaseParams{
DatabaseID: c.cfg.Cloudflare.DBID,
SQL: sqlQuery.String(),
// error was originally here
})
The first error that i started getting was this:
Invalid property: params => Expected array, received null (7400)"}
When i changed the code to include a string array with params i started getting:
failed to upsert customers to D1 {"error": "error from makeRequest: received internal server error response (HTTP 500), please try again later"}
This started happening one week ago.

