Skip to content

Conversation

@cubap
Copy link
Member

@cubap cubap commented Jul 8, 2025

Added specific handling for HTTP 409 conflict errors in the overwrite function to trigger a custom event with conflict details. This improves error reporting when attempting to overwrite an object that has a version conflict.

This is done in TinyPEN correctly, but TinyThings receives a 409 and changes it to a 500 without helpful notes.

Added specific handling for HTTP 409 conflict errors in the overwrite function to trigger a custom event with conflict details. This improves error reporting when attempting to overwrite an object that has a version conflict.
@cubap cubap requested a review from thehabes as a code owner July 8, 2025 16:01
cubap and others added 5 commits July 8, 2025 11:06
Enhanced the overwrite route to better handle errors, including 409 version conflicts, and to support the If-Overwritten-Version header from both request headers and the request body. Also improved validation for record IDs and refactored response handling for clarity.
Copy link
Member

@thehabes thehabes left a comment

Choose a reason for hiding this comment

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

Manually tested using TalendAPI (to make requests to TinyNode) as well as the TinyNode interface. Added some touch ups to get things through as expected, added the token overhead back into overwrite.

@thehabes thehabes merged commit 84e354e into main Jul 8, 2025
3 checks passed
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