Failed to make API requests to Bitbucket via @forge/api

Hi @BoZhang, I’ve created a new thread as instructed. Thank you for having a look.
As per your comment.

Unfortunately it’s not the issue. I can be 100% sure that the variables <mysite> and <myrepo> are correct as I am developing this Forge app for our internal usage. Moreover, I still can make the call with curl (basic authenticated, bitbucket replaced with api.bitbucket.org) successfully

I’ve also tried resolver.define before but the dynamic pipeline immediately failed and it’s reported as Selected Dynamic Pipelines provider Forge app is malformed and can't be invoked.

My appId is 9cea5b71-26f0-442e-8646-4ff63a4b655f. Appreciated!