Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InternalFailure: An internal error has occurred. Please try your query again at a later time. #6562

Closed
lbecker34 opened this issue Oct 9, 2024 · 3 comments
Assignees
Labels
closed-for-staleness p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Comments

@lbecker34
Copy link

lbecker34 commented Oct 9, 2024

I am receiving an error when using the SwitchoverGlobalClusterCommand to try and switchover my global rds cluster.

Here is the code I am using

import {
  RDSClient,
  SwitchoverGlobalClusterCommand,
} from '@aws-sdk/client-rds';

....


     const rdsClient = new RDSClient({ });
      const input = {
        GlobalClusterIdentifier: globalClusterIdentifier,
        TargetDbClusterIdentifier: targetClusterArn, // Use the ARN of the cluster to promote
      };
      const command = new SwitchoverGlobalClusterCommand(input);
      await rdsClient.send(command);

Here is the error I am receiving.

{
  "errorType": "InternalFailure",
  "errorMessage": "An internal error has occurred. Please try your query again at a later time.",
  "trace": [
    "InternalFailure: An internal error has occurred. Please try your query again at a later time.",
    "    at throwDefaultError (/var/task/node_modules/@smithy/smithy-client/dist-cjs/index.js:846:20)",
    "    at /var/task/node_modules/@smithy/smithy-client/dist-cjs/index.js:855:5",
    "    at de_CommandError (/var/task/node_modules/@aws-sdk/client-rds/dist-cjs/index.js:7397:14)",
    "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
    "    at async /var/task/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20",
    "    at async /var/task/node_modules/@smithy/core/dist-cjs/index.js:165:18",
    "    at async /var/task/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38",
    "    at async /var/task/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22",
    "    at async callWithRetry (file:///var/task/node_modules/@swa-acs/lambda/src/utils/call-with-retry.js:11:13)",
    "    at async DBFailoverManager.failover (file:///var/task/src/db-failover/managers/manager.mjs:73:7)"
  ]
}

Does anyone have any ideas what I might be doing wrong?

@aBurmeseDev aBurmeseDev transferred this issue from aws/aws-sdk Oct 14, 2024
@aBurmeseDev
Copy link
Member

Hi @lbecker34 - thanks for reaching out.

Which SDK version are you using? I'm not able to reproduce it on v3.682.0 using same input params as you.

@aBurmeseDev aBurmeseDev self-assigned this Oct 30, 2024
@aBurmeseDev aBurmeseDev added response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days. p3 This is a minor priority issue labels Oct 30, 2024
Copy link

This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Nov 10, 2024
Copy link

github-actions bot commented Dec 1, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed-for-staleness p3 This is a minor priority issue response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants