question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
oboxodocommented, Oct 3, 2021

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:

! NOTE: Be sure to create an user, after you login with the admin account, that has the role “authenticated”, username “admin” and pass “Admin123”, as well as add all collections and upload related permissions to the “authenticated” role. To do that, after the user is created, open http://localhost:1337/admin/settings/users-permissions/roles/ select all NFTS permissions as well as Upload permissions for the Authenticated role;; otherwise, the yarn update-creator-all-rows and yarn generate-nfts-sources commands will not work.

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 and seller_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.

0reactions
kevinfavericommented, Oct 14, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Promise.reject() - JavaScript - MDN Web Docs
The Promise.reject() method returns a Promise object that is rejected with a given reason.
Read more >
What is an unhandled promise rejection? - Stack Overflow
I am getting an error like this: (node:4796) UnhandledPromiseRejectionWarning: Unhandled promise rejection (r ejection id: 1): ...
Read more >
Promise Rejection Events Sample
Sample illustrating the use of Promise Rejection Events. ... The unhandledrejection event is the promise-equivalent of the global error event, ...
Read more >
Tracking Unhandled Promise Rejections - TrackJS
To handle a promise rejection, you pass a callback to the catch() function. Let's add some basic error handling to our code: function...
Read more >
Handling those unhandled promise rejections with JS async ...
One of your await ed functions fails (i.e. rejects a promise); You get the error. Another possibility is that you know you need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found