Oct-17-2019, 11:56 AM
Hi All,
While connecting to web application getting below error and I have hide the credentials with dummy values.
Error message:
b'{"__type":"SerializationException"}'
Thanks in Advance.
Regards,
Harish
While connecting to web application getting below error and I have hide the credentials with dummy values.
Error message:
b'{"__type":"SerializationException"}'
`import requests import json api_login = 'xxxxx api_password = 'xxxx CLIENT_ID = 'xxxx' AUTHFLOW = 'xxxxx url = 'https://xxxxxx.com payload = { "AuthParameters" : { "USERNAME" : api_login, "PASSWORD" : api_password }, "AuthFlow" : AUTHFLOW, "ClientId" : CLIENT_ID } # Adding empty header as parameters are being sent in payload headers = {} headers ={"X-Amz-Target" : "xxxxxxx", "Content-Type" : "xxxxx" } print(payload) r = requests.post(url, data=payload, headers=headers) print(r.content)
`Thanks in Advance.
Regards,
Harish