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

Add option to set If-Match eTag for objects write requests #205

Merged
merged 6 commits into from
Feb 11, 2025

Conversation

seba-aln
Copy link
Contributor

@seba-aln seba-aln commented Feb 5, 2025

feat: Write protection with If-Match eTag header

Write protection with If-Match eTag header for setting channel and uuid metadata

@seba-aln seba-aln marked this pull request as ready for review February 7, 2025 06:49
# We get an exception and after reading the error message we can see that the reason is that the eTag is outdated.
print(f"Update failed: {e.get_error_message().get('message')}")
except Exception as e:
print(f"Unexpected error: {e}")

Choose a reason for hiding this comment

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

Do you have the possibility to check that the HTTP status code is 412?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. added to this example

@seba-aln seba-aln requested a review from jguz-pubnub February 7, 2025 09:53
@seba-aln
Copy link
Contributor Author

seba-aln commented Feb 7, 2025

@pubnub-release-bot release

@seba-aln seba-aln merged commit ecb16f4 into master Feb 11, 2025
9 checks passed
@seba-aln seba-aln deleted the feat/etag-support branch February 11, 2025 07:56
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

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.

3 participants