You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When LUA script is trying to get the current value of a JSON path, sometimes, it returns a boolean instead of a number:
KEYS[1]: The index that we want to update. User:Counts:{user_pubky}
path: The property to update the value. Usually we decrement or increment: tags
local current_value = redis.call('JSON.GET', KEYS[1], path)
This is the error that we get in the watcher logs:
ERROR pubky_nexus::events::processor] Error while handling event after 1 attempts: An error was signalled by the server - ResponseError: user_script:13: bad argument #1 to 'decode' (string expected, got boolean)
The bellow points, might be the reasons but still work in progress to detect the specific error. It is hard to reproduce maybe becasue lack of context:
Race Conditions: Multiple concurrent operations might update the same JSON path in Redis, leading to unexpected results
Dynamic JSON Updates: The JSON.SET command might have been used in different parts of your code to store values under the same path but with inconsistent types
...
The text was updated successfully, but these errors were encountered:
When LUA script is trying to get the current value of a JSON path, sometimes, it returns a boolean instead of a number:
This is the error that we get in the watcher logs:
The bellow points, might be the reasons but still work in progress to detect the specific error. It is hard to reproduce maybe becasue lack of context:
JSON.SET
command might have been used in different parts of your code to store values under the same path but with inconsistent typesThe text was updated successfully, but these errors were encountered: