Authentication Required error occured

I tried running an external API at production that was working in developer , and now I get
“Authentication Required” error.
The yaml file has the following.

providers:
  auth:
    - key: service
      name: Service
      scopes:
        - {API_SCOPE}
      type: oauth2
      clientId: {API_INTEGRATION_KEY}
      remotes:
        - service-oauth
        - service-apis
      bearerMethod:
        type: authorization-header
      actions:
        authorization:
          remote: service-oauth
          path: /oauth/auth
          queryParameters:
            response_type: code
        exchange:
          remote: service-oauth
          path: /oauth/token
        revokeToken:
          remote: service-oauth
          path: /oauth/revoke
        retrieveProfile:
          remote: service-oauth
          path: /oauth/userinfo
          resolvers:
            id: sub
            displayName: name
remotes:
  - key: service-oauth
    baseUrl: {OAUTH_BASE_URL}
  - key: service-apis
    baseUrl: {API_BASE_URL}
permissions:
  external:
    fetch:
      backend:
        - {OAUTH_BASE_URL}
        - {API_BASE_URL}

And this code tried to request credentials and got error message

        const apiOauth = api.asUser().withProvider("service","service-oauth");
        if (!await apiOauth.hasCredentials()) {
            const response = await apiOauth.requestCredentials();
        }

And here is the error message

{

"name": "NEEDS_AUTHENTICATION_ERR",
"message": "Authentication required",
"serviceKey": "docusign",
"status": 401,

}

Environment: Production

Invocation ID: ebb64300-3ff2-468b-b981-af5ce1547755

Module: core:function

secretKey has already set. I used this command

forge configure providers -e production

And I have already tried to use environment variables to login
https://developer.atlassian.com/platform/forge/changelog/#CHANGE-740

If I give you the App Id, can you investigate the cause?