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

Possible to bubble up aws-sdk errors? #36

Closed
v4de opened this issue Oct 21, 2021 · 1 comment
Closed

Possible to bubble up aws-sdk errors? #36

v4de opened this issue Oct 21, 2021 · 1 comment

Comments

@v4de
Copy link

v4de commented Oct 21, 2021

Hey @enGMzizo, I love this tool, already copied a few tables over into new global table versions. I have an issue with one table, it doesn't seem to be copying and there is no output after running the function. I am wondering how can I bubble up the errors from the aws-sdk?

If I debug the copy() function, I end up @ aws-sdk/lib/event_listeners.js and I see the error in resp.error.message and the status code is 400.

resp.error={
  message: "One or more parameter values were invalid: Type mismatch for Index Key individual_id Expected: N Actual: S IndexName: individual_id-index",
  code: "ValidationException",
  time: {
  },
  requestId: "***",
  statusCode: 400,
  retryable: false,
  retryDelay: 2.9211740648415696,
}

I think it would be helpful if the message was bubbled up, but not sure how to do that with js. Any help would be appreciated. I have tried wrapping copy() in a try catch but got no output.

@v4de
Copy link
Author

v4de commented Oct 25, 2021

I apologize I am still learning nodejs. I probably didnt have the right debugger attached and fixed it with adding
"console": "integratedTerminal" to my vscode launch.json

@v4de v4de closed this as completed Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant