skip to Main Content

What makes the 'Request Entity Too Large' error when sending an image to Telegram?

File size: 51.2 KB Trying to send: >>> send_img_url = 'https://api.telegram.org/botXXXXXXXXXXXXXXXXXXXXX/sendPhoto' >>> img_name = 'C:/Users/Administrator/Downloads/WhatsApp Image 2019-05-30 at 20.54.40.jpeg' >>> r = requests.post(send_img_url, data={'chat_id': '-351543550', 'photo': open(img_name, 'rb')}) >>> r <Response [413]> >>> r.reason 'Request Entity Too Large' >>> r.content…

VIEW QUESTION

Error while generating access_token using Ebay 's REST API – Python requests – Ebay API

I'm trying to use the ebay REST-API for the first. I am simply trying to generate an access_token using the client credentials grant-request. I followed the instructions here https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html HTTP method: POST URL (Sandbox): https://api.sandbox.ebay.com/identity/v1/oauth2/token HTTP headers: Content-Type = application/x-www-form-urlencoded…

VIEW QUESTION
Back To Top
Search