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
toastOP7mo 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
toastOP7mo 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
toastOP7mo ago
hgots
hgots7mo 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
toastOP7mo ago
You mean I should remove it completely?
toast
toastOP7mo ago
No description
toast
toastOP7mo ago
(I added the empty string because it wasn't even compiling properly)
hgots
hgots7mo 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
toastOP7mo ago
This seem to be a typo in the repo
No description
toast
toastOP7mo ago
No description
CircuitSacul
CircuitSacul7mo ago
Change it to ::
toast
toastOP7mo ago
ye I got it running now and posted a PR
CircuitSacul
CircuitSacul7mo ago
Thanks

Did you find this page helpful?