-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultipartRequest weird behavior using Telegram API #69
Comments
Are you using |
I just tested it with version 0.11.3+13, and the Gateway Timeout is still happening. |
In that case, I need more information to determine what's different between the requests we're sending and those curl is sending. If you can provide a standalone example—one that doesn't require telegram's servers—that chokes on our multipart requests, that would be great. Otherwise, you may have to do some trial-and-error with manual HTTP requests to figure out exactly what it is about our requests that's causing Telegram to choke. |
Sorry for the VERY late response. I am using the newest version of http (0.11.3+16)
The file photo.jpg is placed in the same folder of the script. I am still unable to send any file using this method |
I still need more information about the difference between what's happening at a protocol level here between |
The curl command I used for tests is the following:
I am not using any extra header, except the multipart/form-data where necessary. The requests are basically the same. |
I need to see the actual bytes that are being sent to the server in each case—I don't want to try to reproduce this locally and risk messing with your bot or whatever. |
This is a bot intended to be a testing bot, you can use it freely.
I don't know how to get all bytes from the file anyway.
Em ter, 2 de jan de 2018 23:43, Natalie Weizenbaum <notifications@github.com>
escreveu:
I need to see the actual bytes that are being sent to the server in each
case—I don't want to try to reproduce this locally and risk messing with
your bot or whatever.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#69 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEdF6vKU2XiZkwP6xoVEVomAg2fIuAHWks5tGtsogaJpZM4MhEvp>
.
--
[image: Visualizar meu perfil no LinkedIn] Visualizar perfil de Rodrigo
Muniz <https://br.linkedin.com/pub/rodrigo-muniz/33/400/236>
|
I'm trying to reproduce this with a curl call, but I keep getting 400 errors with the description "Bad Request: chat not found". |
Without additional information we're not able to resolve this issue. Feel free to add more info or respond to any questions above and we can reopen the case. Thanks for your contribution! |
Hi. I am developing a bot wrapper for Telegram, and I am using MultipartRequest class to send a file from my local machine to the Telegram servers, but I am facing a 504 error all the time. No matter the parameters I'm using, I get this error after a long waiting time.
Even without any file attached this actions results in an error. Here is a snippet of the code I'm using. A simple curl with exactly the same parameters is successful.
As far as I tested, this only occours with Telegram.
The text was updated successfully, but these errors were encountered: