There was an error generating the updated file: Cannot read property 'monthlyPriceInCents' of null ❌ #498
-
Thanks for putting this project together, this is really cool! I am running into an issue with my project and I am hoping to see if I am doing everything correctly.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This looks correct to me. Does the bot user have org admin access? Seems like this is likely a permission error, although it's odd that it's throwing on the price in cents. I'm also curious if you're able to run a graphql query in the GitHub api explorer from this user for sponsorship data and see if it properly returns - https://docs.github.com/en/graphql/overview/explorer |
Beta Was this translation helpful? Give feedback.
-
Changing the bot user to an "Owner" on the team, helped me get one step closer! What it didIt was able to get me sponsors data! (see the diff →). When I did this, I accidentally had my settings set to Where I am at now
View my current codeEverything is live here: https://github.com/serversideup/spin Next stepsI am very grateful for your help on this awesome project! Let me know if I should open a new issue or not? I didn't know if the |
Beta Was this translation helpful? Give feedback.
-
The If none of your sponsors match the criteria specified then the fallback will be shown. In your case your sponsor has paid more than 5 cents, and as a result the fallback is being shown. Keep in mind you can run the sponsorship job multiple times in a given workflow, so you can have fallbacks for different pricing tiers should you choose too. |
Beta Was this translation helpful? Give feedback.
This looks correct to me. Does the bot user have org admin access? Seems like this is likely a permission error, although it's odd that it's throwing on the price in cents.
I'm also curious if you're able to run a graphql query in the GitHub api explorer from this user for sponsorship data and see if it properly returns - https://docs.github.com/en/graphql/overview/explorer