Skip to content

Conversation

@seba-aln
Copy link

@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
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
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