Dmitry Sandovich
01/30/2023, 6:33 PMjawnsy
01/30/2023, 6:35 PMDmitry Sandovich
01/30/2023, 6:40 PMjawnsy
01/30/2023, 10:25 PMcurl --location --request GET --header "Authorization: Bearer pnu_xxx" <https://api.prefect.cloud/api/me/>
Dmitry Sandovich
01/30/2023, 10:39 PMjawnsy
01/30/2023, 10:58 PMDmitry Sandovich
01/31/2023, 2:02 PMXun Wang
02/13/2023, 11:43 PMdef login():
auth_token = 'pnu_xxxxxxxxxxxxx'
hed = {'Authorization': 'Bearer ' + auth_token}
response = <http://requests.post|requests.post>('<https://api.prefect.cloud/auth/login>', headers=hed)
print(response.headers)
print(response)
print(response.json())
If change to GET, it returns http 200 with an empty body plus a lot of values in the header. According to the API doc, this endpoint should be working. Wonder if it is actually not working at this point without anyone noticed.
Any advice?jawnsy
02/13/2023, 11:59 PMXun Wang
02/14/2023, 3:10 PM