You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using transactions it complains that the table name is undefined and should be registered first. Even when it errors it still writes to the database successfully.
Current output and behavior (including stack trace):
InvalidParameter: Table "undefined" not found. Please register the table with dynamoose before using it in transactions.
at /Users/work/Documents/nfts/nft-global-accounts/node_modules/dynamoose/dist/Transaction.js:64:23
at Array.forEach (<anonymous>)
at /Users/work/Documents/nfts/nft-global-accounts/node_modules/dynamoose/dist/Transaction.js:62:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async post (webpack-internal:///(api)/./pages/api/auth/signup.ts:52:23)
at async eval (webpack-internal:///(api)/./middlewares/api.ts:12:13)
at async K (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/compiled/next-server/pages-api.runtime.dev.js:21:2946)
at async U.render (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/compiled/next-server/pages-api.runtime.dev.js:21:3827)
at async DevServer.runApi (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/server/next-server.js:556:9)
at async NextNodeServer.handleCatchallRenderRequest (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/server/next-server.js:268:37)
at async DevServer.handleRequestImpl (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/server/base-server.js:807:17)
at async /Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/server/dev/next-dev-server.js:331:20
at async Span.traceAsyncFn (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/trace/trace.js:151:20)
at async DevServer.handleRequest (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/server/dev/next-dev-server.js:328:24)
at async invokeRender (/Users/work/Documents/nfts/nft-global-accounts/node_modules/next/dist/server/lib/router-server.js:163:21)
It does write to the database.
Expected output and behavior:
Writes to the database without any errors.
Environment:
Operating System: macOS
Operating System Version: 14.1.1
Node.js version (node -v): v18.17.0
NPM version: (npm -v): 9.6.7
Dynamoose version: 4.0.0
Other information (if applicable):
Other:
I have read through the Dynamoose documentation before posting this issue
I have searched through the GitHub issues (including closed issues) and pull requests to ensure this issue has not already been raised before
I have searched the internet and Stack Overflow to ensure this issue hasn't been raised or answered before
I have tested the code provided and am confident it doesn't work as intended
I have filled out all fields above
I am running the latest version of Dynamoose
The text was updated successfully, but these errors were encountered:
Summary:
While using transactions it complains that the table name is undefined and should be registered first. Even when it errors it still writes to the database successfully.
Code sample:
Schema
Model
General
Current output and behavior (including stack trace):
It does write to the database.
Expected output and behavior:
Writes to the database without any errors.
Environment:
Operating System: macOS
Operating System Version: 14.1.1
Node.js version (
node -v
): v18.17.0NPM version: (
npm -v
): 9.6.7Dynamoose version: 4.0.0
Other information (if applicable):
Other:
The text was updated successfully, but these errors were encountered: