Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch post request sites #94

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Patch post request sites #94

merged 2 commits into from
Jan 30, 2024

Conversation

nqn
Copy link
Contributor

@nqn nqn commented Jan 30, 2024

No description provided.

if target_service == "log10":
try:
res = post_request(completion_url + "/" + completionID, log_row)
except Exception as e:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

May not need this nested exception handler - caught on line 228

Copy link
Collaborator

Choose a reason for hiding this comment

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

yea I think that we can remove try/catch here

Comment on lines +110 to 113
logging.warn(
"Failed anthorization. Please verify that LOG10_TOKEN and LOG10_ORG_ID are set correctly and try again."
+ "\nSee https://github.com/log10-io/log10#%EF%B8%8F-setup for details"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was checking our api endpoint when we returns 401 and it should be okay to raise here

@nqn nqn merged commit 0a76811 into main Jan 30, 2024
1 check passed
@nqn nqn deleted the nqn/patch-post-request-sites branch January 30, 2024 23:50
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