Reopen - Update-creator-all-rows promise rejection
See original GitHub issue_Originally posted by @kevinfaveri in https://github.com/kevinfaveri/solana-candy-factory/issues/16#issuecomment-929708622_
Reopening. It definitely is different. Permissions should be fine.
C:\Users\XXXXXX\Documents\GitHub\solana-candy-factory>yarn update-creator-all-rows
yarn run v1.22.10
$ cd ./nft-manager && yarn update-creator-all-rows
$ node ./scripts/update-creator-all-rows
(node:21136) UnhandledPromiseRejectionWarning: Error
at Strapi.request (C:\Users\XXXXXX\Documents\GitHub\solana-candy-factory\nft-manager\node_modules\strapi-sdk-javascript\build\main\lib\sdk.js:59:23)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Strapi.login (C:\Users\XXXXXX\Documents\GitHub\solana-candy-factory\nft-manager\node_modules\strapi-sdk-javascript\build\main\lib\sdk.js:93:32)
at async updateCreatorAllRows (C:\Users\XXXXXX\Documents\GitHub\solana-candy-factory\nft-manager\scripts\update-creator-all-rows.js:32:3)
(Use node --trace-warnings ...
to show where the warning was created)
(node:21136) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:21136) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Done in 0.34s.
I pulled fork starting from 4676f11b11f806db8ba42c69c8591922e4fcef05
Will leave this here too:
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
Hi all. I was having the exact same problem following the guide at https://www.quicknode.com/guides/web3-sdks/how-to-mint-an-nft-on-solana-using-candy-machine, but then I realized that that guide doesn’t mention the
Authenticated
role’s permissions at all, so I hadn’t done that.This repo’s README, does mention this:
So after I did that, the
yarn update-creator-all-rows
command didn’t error anymore, which is great 💪 , but… it really doesn’t update the records in the DB 😕.I purposely used different creator’s
address
andseller_fee_basis_points
values from the ones I had set in the NFT records to make sure the script was doing what it’s supposed to do but after executing it without any visible error, the values in the DB remain exactly the same as before.Hey @everyone! NFT Manager support with Strapi for generating sources has been dropped from this repo. From now on, I suggest the usage of third party tools, some of them listed here: https://github.com/kevinfaveri/solana-candy-factory#others-tools
Please retry your setup after getting the updated version, and if you still have any issues, please open a new issue.