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
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:53GitHub
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.
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)
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?You mean I should remove it completely?
(I added the empty string because it wasn't even compiling properly)
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
This seem to be a typo in the repo
Change it to ::
ye I got it running now
and posted a PR
Thanks