Python Forum
Error while connecting to web application
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error while connecting to web application
#1
Hi All,

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
Reply


Messages In This Thread
Error while connecting to web application - by harish - Oct-17-2019, 11:56 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020