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

Exception when writing document when it doesn' t exit yet; Found @ PHPfastcache #185

Closed
Fabbzz opened this issue Oct 15, 2024 · 2 comments
Closed
Assignees

Comments

@Fabbzz
Copy link

Fabbzz commented Oct 15, 2024

Hi,

Together with some people we found out that the PHP SDK has an issue itself when writing the document when it doesn't exist in a Couchbase container yet. When you want to write a document the SDK first tries to get the document as well but as it doesn't exist the SDK throws an exception that PHP fast cache handles as well.

The SDK needs a fix that it doesn't throw an exception when the document it want to write - and doesn't exist yet - just writes and doesn't crash.

Reference:

PHPSocialNetwork/phpfastcache#918

@avsej
Copy link
Member

avsej commented Oct 21, 2024

Hi @Fabbzz, thanks for report. I've copied the ticket into our Jira (https://jira.issues.couchbase.com/browse/PCBC-1013). This ticket will be updated accordingly once the issue will be resolved. You can still use this one for any further communication.

@avsej
Copy link
Member

avsej commented Oct 21, 2024

I will close this ticket, as it seems to be related to old extension. If the fastcache needs some transcoder that does not apply any transformations and the payload should be treated as just bytes, you can use \Couchbase\RawBinaryTranscoder.

@avsej avsej closed this as completed Oct 21, 2024
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

No branches or pull requests

2 participants