Let me rephrase my problem so that i can be clear! I have a golang script using cloudflare-go sdk v

Let me rephrase my problem so that i can be clear!

I have a golang script using cloudflare-go sdk version 0.89.0.

In my scipt there was this code:

res, err := c.api.QueryD1Database(c.ctx, cloudflare.AccountIdentifier(c.cfg.Cloudflare.AccountID), cloudflare.QueryD1DatabaseParams{
DatabaseID: c.cfg.Cloudflare.DBID,
SQL: sqlQuery,
})

and it was working.

Last Monday 3 March 2025, this script stopped working, with this error:

Invalid property: params => Expected array, received null (7400).


Following the error message, I updated my code to this:

res, err := c.api.QueryD1Database(c.ctx, cloudflare.AccountIdentifier(c.cfg.Cloudflare.AccountID), cloudflare.QueryD1DatabaseParams{
DatabaseID: c.cfg.Cloudflare.DBID,
SQL: sqlQuery,
Parameters: []string{},
})

and the 7400 above was gone but a new error ocuured which is this:

error from makeRequest: received internal server error response (HTTP 500), please try again later


And I am wondering if except from the validation check you mentioned, something else also changed and my query does not work.

As mentioned i am using sdk version 0.89.0 and I would not like to make a version upgrade to v4 if possible
Was this page helpful?