src/core/premium/patreon.rs keeps panicking because I don't have a PATERON_TOKEN

Is there anything I can do that is simpler than removing all the code related to api calls to pateron
14 Replies
toast
toastOP5mo ago
https://github.com/CircuitSacul/Starboard-4/blob/main/src/core/premium/patreon.rs#L152 Panicking on this line thread 'tokio-runtime-worker' panicked at 'called Option::unwrap() on a None value', src/core/premium/patreon.rs:152:53
GitHub
Starboard-4/src/core/premium/patreon.rs at main · CircuitSacul/Star...
V4 of Starboard, written in Rust. Contribute to CircuitSacul/Starboard-4 development by creating an account on GitHub.
toast
toastOP5mo ago
Not familiar with rust so can't get a stack trace out easily (couldn't even compile it outside of docker in the vps lol)
toast
toastOP5mo ago
hgots
hgots5mo ago
it shouldn't even be reaching that code if PATREON_TOKEN isn't present - are you sure you don't have an empty PATREON_TOKEN key in your env?
toast
toastOP5mo ago
You mean I should remove it completely?
toast
toastOP5mo ago
No description
toast
toastOP5mo ago
(I added the empty string because it wasn't even compiling properly)
hgots
hgots5mo ago
yes, you need to remove the key in its entirety - it not being present shouldn't have been the cause of whatever compilation issues you had
toast
toastOP5mo ago
This seem to be a typo in the repo
No description
toast
toastOP5mo ago
No description
CircuitSacul
CircuitSacul5mo ago
Change it to ::
toast
toastOP5mo ago
ye I got it running now and posted a PR
CircuitSacul
CircuitSacul5mo ago
Thanks
Want results from more Discord servers?
Add your server