API Stash Data - Help with Error

Hi

Im trying out the Stash Data, im getting a long error 400, but cant figure out what im doing wrong :slight_smile:

“Error
   at new i (/glide/packages/functions-support/dist/js/index.js:1:1057)
   at parseStashID (/glide/functions/lib/functions/src/api/stash-helpers.js:23:16)
   at /glide/functions/lib/functions/src/api/gbt.js:215:54
   at handleReturn (/glide/node_modules/.pnpm/[email protected]…”

Error

Error
Error
   at new i (/glide/packages/functions-support/dist/js/index.js:1:1057)
   at parseStashID (/glide/functions/lib/functions/src/api/stash-helpers.js:23:16)
   at /glide/functions/lib/functions/src/api/gbt.js:215:54
   at handleReturn (/glide/node_modules/.pnpm/[email protected]_patch_hash=irwptyw7mibtxhsaajblxoagtu_@[email protected][email protected]/node_modules/express-promise-router/lib/express-promise-router.js:24:23)
   at /glide/node_modules/.pnpm/[email protected]_patch_hash=irwptyw7mibtxhsaajblxoagtu_@[email protected][email protected]/node_modules/express-promise-router/lib/express-promise-router.js:65:7
   at handleReturn (/glide/node_modules/.pnpm/[email protected]_patch_hash=irwptyw7mibtxhsaajblxoagtu_@[email protected][email protected]/node_modules/express-promise-router/lib/express-promise-router.js:24:23)
   at /glide/node_modules/.pnpm/[email protected]_patch_hash=irwptyw7mibtxhsaajblxoagtu_@[email protected][email protected]/node_modules/express-promise-router/lib/express-promise-router.js:65:7
   at Layer.handle [as handle_request] (/glide/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:95:5)
   at next (/glide/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/route.js:149:13)
   at validationMiddleware (/glide/node_modules/.pnpm/[email protected][email protected]/node_modules/express-zod-openapi/lib/index.js:644:9)
   at runMicrotasks (<anonymous>)
   at processTicksAndRejections (node:internal/process/task_queues:96:5)

That looks like possibly a bug. I’ll see if I can find somebody that can help.

1 Like

Hey Danny,

Do me a favor and make your stash id a UUID (e.g., something in the form 85d65676-424d-4102-b2cd-cd338722c775).

This stash id format is a temporary relic of a previous implementation that we haven’t yet updated (despite what the docs say).

2 Likes

That got me 200, thanks :slight_smile:

1 Like

Small thing, in the REST API to add/owerwrite rows, i need to provide {tableID}

In Glide / show API, i can find my tablename (not the ID / kinda)
table: “native-table-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”

I can get the {tableID} with “List Tables”, but a small nice-to-have would be the ID shown somewhere in Glide. Well, it kinda is, if i remove “native-table-” from name i get the ID - But still.

As said, small thing :slight_smile:

3 Likes

Great feedback, Danny. Thank you. Will add this to our list when we take a pass through the interface to clean up our API references :+1:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.