Cameron Moore
Cameron Moore
Is this a typo? Where are you using `onBeforeRequest`?
I think [this line](https://github.com/go-resty/resty/blob/d01e8d1bac5ba1fed0d9e03c4c47ca21e94a7e8e/middleware.go#L318) is the problem. `debugLog` should be escaped before passing to `Debugf`.
Somewhere along the way, the `:` is probably being uri-encoded as `%3A`. This would give the `%!A(MISSING)` message seen. However, I'm unable to reproduce this issue with a simple test:...
It looks to me like you're using v2.0.0. v2.0.0 had [a misuse of `log.Debugf`](https://github.com/go-resty/resty/blob/v2.0.0/middleware.go#L284), which was [fixed](https://github.com/go-resty/resty/commit/314627a0b30099ad40b80f8f4c2ad6fcd4600f3f) and shipped with v2.3.0.
https://pkg.go.dev/github.com/go-resty/resty/v2#Client.SetBaseURL
AFAIK, it's not possible with the Go `http` package, which is what Resty is built upon. See https://github.com/golang/go/issues/24375 for more details.
I was favoring option 2 as well.
The only way to ease that transition is to unmarshal twice: once in normal mode and a second in strict mode to log warnings. We can control this in yaml/v3...
Please share your `hugo version` output.
A minimal demo repo is always helpful.