python – IndexError: tuple index out of range with request.session ()

I'm trying to get data from a report in Salesforce and transfer it to MySQL on our server. Everything works from the MySQL side, but I get a tuple error from my request code. I can not figure out what's wrong in my life, please help.

I do not see where the mistake is.

import requests
Import csv
import os
from sqlalchemy import create_engine
Import pandas as pd
from io import BytesIO
From simple_salesforce, import Salesforce
from datetime import datetime

your_username = & # 39; xxx & # 39;
your_password = & # 39; xxx & # 39;
your_token = & # 39; xxx & # 39;
report_id = & # 39; xxx & # 39;

sf = Salesforce (username = your_username, password = your_password, security_token = your_token)
login_data = {username #: your_username, password # your_password + your_token}

with request.session () as s:
d = s.get (& # 39; https: //eu10.salesforce.com/ {}? export = 1 & enc = UTF-8 & xf = csv & 39; format (), header = sf.headers, cookies = {# sid; sf session ID}}


sf = Salesforce (username = your_username, password = your_password, security_token = your_token)
login_data = ({# username & # 39 ;: your_username, & # 39; password & # 39 ;: your_password + your_token})

with request.session () as s:
d = s.get (& # 39; https: //eu10.salesforce.com/ {}? export = 1 & enc = UTF-8 & xf = csv & 39; format (), header = sf.headers, cookies = {# sid; sf session ID}}


Traceback (last call last):

File "", Line 21, in 
    d = s.get (& # 39; https: //eu10.salesforce.com/ {}? export = 1 & enc = UTF-8 & xf = csv & 39; format (), header = sf.headers, cookies = {# sid; sf session ID}}

IndexError: Tuple index out of range