Closed doiraduc closed 1 year ago
Seems like it is not an issue with dio. I downgraded to a previous version of televerse and I'm getting this error
Unhandled exception:
TelegramException [400]: (Bad Request: can't parse entities: Unsupported start tag "string" at byte offset 37)
#0 HttpClient.postURI (package:televerse/src/utils/http.dart:32:7)
<asynchronous suspension>
#1 RawAPI.sendMessage (package:televerse/src/televerse/raw_api.dart:247:37)
<asynchronous suspension>
#2 MessageMixin.reply (package:televerse/src/televerse/context/mixins/message_mixin.dart:31:12)
<asynchronous suspension>
When trying to call getChatMember.
Heyy, thanks for raising this. I'll check it later today.
Hey! Sorry for the hassle, I found out that the problem is actually from my code. I was parsing some weird HTML.
But, I have to admit, it would've been so much easier if the exception details were written instead of just DioException, just like in the previous versions. Is this something possible to do?
Hey @iamcosmin, just pushed v1.10.9 to release. Hopefully, this will throw more meaningful exceptions than the random DioExceptions.
Closing this issue for now, feel free to reopen it if the issue persists.
Since switching to dio, I started getting these weird errors
For the moment, I experimented these errors sometimes (but not everytime) I called ctx.getChatMember.