orange-eve-3954
01/28/2023, 11:11 PMrust
2023-01-28T15:06:36.545019056Z ERROR {error="Run error: Panic occurred in shuttle_service::main`: panicked calling main"} shuttle_deployer::deployment::run: service startup encountered an error
I am able to run my bot locally with cargo shuttle run without any issues.
My repo is public if you need to look at the code: https://github.com/InfernapeXavier/annie-mai/tree/ann-24-try-out-hosting-on-shuttlersagreeable-painting-48846
01/28/2023, 11:21 PMagreeable-painting-48846
01/28/2023, 11:22 PMorange-eve-3954
01/28/2023, 11:24 PMagreeable-painting-48846
01/28/2023, 11:26 PMagreeable-painting-48846
01/28/2023, 11:34 PM#[instrument] macro? but I highly doubt that) since the macro seems to have called that error because of panicking during main function execution
At some point I'll try and write some documentation for a mini-guide on converting an existing project to use shuttle to avoid this kind of thing from happening since it's not immediately obviousorange-eve-3954
01/29/2023, 4:32 AMenv vars, or is the problem that env vars don't behave as expected in Shuttle?
I'm asking because I'm looking at the example for shuttle_secrets and I don't see a way of injecting vars ad-hoc which I don't think will work with my current setup and how I'm using env varsorange-eve-3954
01/29/2023, 6:09 AMshuttle_secrets makde the deploy work. Sadly I don't think I can use it because I need to arbitrarily load the secrets in a few different flows. But thanks for your help!orange-eve-3954
01/29/2023, 6:10 AMagreeable-painting-48846
01/29/2023, 7:45 AMagreeable-painting-48846
01/29/2023, 7:46 AM