Beginner struggling with Tokio await nightmare #947
Replies: 1 comment
-
I solved my issue after marking my error type that was being returned as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Learning rust so I'm probably doing something wrong here.
I'm trying to build a simple telegram bot that makes a http JSON request and returns the result to users when they submit a certain command.
The issue is in my example below the use of await for the request that returns a result type, and that messes everything up.
I get this horror of an error message and I've spent hours trying to debug it
The return type of get_sums is
Result<Vec<String>, Box<dyn std::error::Error>>
, which is what I get back after I clean up the JSON request I make. Can you help me figure this out,Hope this helps and any help is greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions