Skip to content

Conversation

@Bensebabillal
Copy link

No description provided.

@netlify
Copy link

netlify bot commented Jan 9, 2024

‼️ Deploy request for karrio-docs rejected.

Name Link
🔨 Latest commit 3d8ec1f

# Perform the authentication request
response = lib.request(
url=f"{url}/api/auth/Token",
data={"UserName": self.username, "Password": self.password},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be wrapped in a lib.to_json

# Perform the authentication request
response = lib.request(
url=f"{url}/api/auth/Token",
data={"Username": self.username, "Password": self.password},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data={"Username": self.username, "Password": self.password},
data=lib.to_json({"Username": self.username, "Password": self.password}),

# Perform the authentication request
response = lib.request(
url=f"{url}/api/auth/Token",
data={"UserName": self.username, "Password": self.password},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data={"UserName": self.username, "Password": self.password},
data=lib.to_json({"UserName": self.username, "Password": self.password}),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants