I am using the binding API. I would also

I am using the binding API. I would also like to add that it's not only latency. For me in some cases the values are never written.
4 Replies
Jun
Jun2w ago
Ah, thanks for letting me know, I'll pass that on. Are there any other details (anything unusual, the time at which you started noticing, etc) you can provide? It might expedite identifying a problem
Anthony
AnthonyOP2w ago
I'm not such an experienced developer therefore I am not sure what the best practices for error handling are when it comes to writing to the KV. I did try to implement the try catch as in the example from the docs, but it seems like there is no error, and my code just continues regardless of if the write was successful or not.
No description
Anthony
AnthonyOP2w ago
Now that I think about it, I am not writing a new value but updating an old one in most cases Therefore value === null from the example above isn't really a good indicator of if the write didn't work
Jun
Jun2w ago
Ah yeah, the example shown in the doc is quite minimal (I suppose it's only trying to explain the overall gist)
Want results from more Discord servers?
Add your server